Go to the documentation of this file.
24 #ifndef SURICATA_THREADVARS_H
25 #define SURICATA_THREADVARS_H
37 #define THV_INIT_DONE BIT_U32(1)
38 #define THV_PAUSE BIT_U32(2)
39 #define THV_PAUSED BIT_U32(3)
40 #define THV_KILL BIT_U32(4)
41 #define THV_FAILED BIT_U32(5)
42 #define THV_CLOSED BIT_U32(6)
45 #define THV_DEINIT BIT_U32(7)
46 #define THV_RUNNING_DONE BIT_U32(8)
48 #define THV_REQ_FLOW_LOOP BIT_U32(9)
49 #define THV_FLOW_LOOP BIT_U32(10)
54 #define THV_CAPTURE_INJECT_PKT BIT_U32(11)
55 #define THV_DEAD BIT_U32(12)
56 #define THV_RUNNING BIT_U32(13)
64 void *(*tm_func)(
void *);
142 #define THREAD_SET_AFFINITY 0x01
143 #define THREAD_SET_PRIORITY 0x02
144 #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
Per thread variable structure.
struct ThreadVars_ * next
struct ThreadVars_ ThreadVars
Per thread variable structure.
uint8_t thread_setup_flags
SC_ATOMIC_DECLARE(uint32_t, flags)
struct PacketQueue_ * stream_pq
void(* tmqh_out)(struct ThreadVars_ *, struct Packet_ *)
struct TmSlot_ * tm_flowworker
PacketQueueNoLock decode_pq