suricata
|
Go to the source code of this file.
Functions | |
Tmq * | TmqGetQueueByName (const char *name) |
void | TmqDebugList (void) |
void | TmqResetQueues (void) |
void | TmValidateQueueState (void) |
Checks if all the queues allocated so far have at least one reader and writer. More... | |
Thread module management functions
Definition in file tm-queues.c.
void TmqDebugList | ( | void | ) |
Definition at line 69 of file tm-queues.c.
References Tmq_::id, PacketQueue_::len, PacketQueue_::mutex_q, Tmq_::name, next, Tmq_::pq, SCMutexLock, SCMutexUnlock, and TAILQ_FOREACH.
Tmq* TmqGetQueueByName | ( | const char * | name | ) |
Definition at line 59 of file tm-queues.c.
References Tmq_::name, next, and TAILQ_FOREACH.
Referenced by TmThreadCreate().
void TmqResetQueues | ( | void | ) |
Definition at line 80 of file tm-queues.c.
References Tmq_::name, next, PacketQueueFree(), Tmq_::pq, SCFree, TAILQ_FIRST, and TAILQ_REMOVE.
void TmValidateQueueState | ( | void | ) |
Checks if all the queues allocated so far have at least one reader and writer.
Definition at line 101 of file tm-queues.c.
References FatalError, Tmq_::id, PacketQueue_::mutex_q, Tmq_::name, next, Tmq_::pq, Tmq_::reader_cnt, SCLogError, SCMutexLock, SCMutexUnlock, TAILQ_FOREACH, and Tmq_::writer_cnt.