suricata
threadvars.c File Reference
#include "suricata-common.h"
#include "threadvars.h"
#include "thread-storage.h"
Include dependency graph for threadvars.c:

Go to the source code of this file.

Functions

ThreadVarsThreadVarsAlloc (void)
 Allocate a new ThreadVars structure. More...
 
void ThreadVarsFree (ThreadVars *tv)
 Free a ThreadVars structure. More...
 

Function Documentation

◆ ThreadVarsAlloc()

ThreadVars* ThreadVarsAlloc ( void  )

Allocate a new ThreadVars structure.

Return values
NULLif allocation failed.
Pointerto newly allocated ThreadVars structure.

Definition at line 28 of file threadvars.c.

References SC_ATOMIC_INIT, SCCalloc, SCThreadStorageSize(), and tv.

Referenced by TmThreadCreate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ThreadVarsFree()

void ThreadVarsFree ( ThreadVars tv)

Free a ThreadVars structure.

Parameters
tvPointer to ThreadVars structure to be freed.

Definition at line 42 of file threadvars.c.

References SCFree, and tv.