Go to the documentation of this file.
24 #ifndef SURICATA_THREADVARS_H
25 #define SURICATA_THREADVARS_H
36 #define THV_INIT_DONE BIT_U32(1)
37 #define THV_PAUSE BIT_U32(2)
38 #define THV_PAUSED BIT_U32(3)
39 #define THV_KILL BIT_U32(4)
40 #define THV_FAILED BIT_U32(5)
41 #define THV_CLOSED BIT_U32(6)
44 #define THV_DEINIT BIT_U32(7)
45 #define THV_RUNNING_DONE BIT_U32(8)
47 #define THV_REQ_FLOW_LOOP BIT_U32(9)
48 #define THV_FLOW_LOOP BIT_U32(10)
53 #define THV_CAPTURE_INJECT_PKT BIT_U32(11)
54 #define THV_DEAD BIT_U32(12)
55 #define THV_RUNNING BIT_U32(13)
63 void *(*tm_func)(
void *);
141 #define THREAD_SET_AFFINITY 0x01
142 #define THREAD_SET_PRIORITY 0x02
143 #define THREAD_SET_AFFTYPE 0x04
struct FlowQueue_ * flow_queue
simple fifo queue for packets with mutex and cond Calling the mutex or triggering the cond is respons...
struct PacketQueue_ * stream_pq_local
simple fifo queue for packets
struct TmSlot_ * tm_slots
void ThreadVarsFree(ThreadVars *tv)
Free a ThreadVars structure.
Per thread variable structure.
struct ThreadVars_ * next
struct ThreadVars_ ThreadVars
Per thread variable structure.
uint8_t thread_setup_flags
ThreadVars * ThreadVarsAlloc(void)
Allocate a new ThreadVars structure.
SC_ATOMIC_DECLARE(uint32_t, flags)
struct PacketQueue_ * stream_pq
void(* tmqh_out)(struct ThreadVars_ *, struct Packet_ *)
struct TmSlot_ * tm_flowworker
PacketQueueNoLock decode_pq