suricata
tm-queues.c File Reference
#include "suricata.h"
#include "threads.h"
#include "tm-queues.h"
#include "util-debug.h"
Include dependency graph for tm-queues.c:

Go to the source code of this file.

Functions

TmqTmqGetQueueByName (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...
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Thread module management functions

Definition in file tm-queues.c.

Function Documentation

◆ TmqDebugList()

void TmqDebugList ( void  )

◆ TmqGetQueueByName()

Tmq* TmqGetQueueByName ( const char *  name)

Definition at line 59 of file tm-queues.c.

References Tmq_::name, next, and TAILQ_FOREACH.

Referenced by TmThreadCreate().

Here is the caller graph for this function:

◆ TmqResetQueues()

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.

Here is the call graph for this function:

◆ TmValidateQueueState()

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.