|
suricata
|
#include "thread-callbacks.h"
Go to the source code of this file.
Data Structures | |
| struct | ThreadInitCallback_ |
Typedefs | |
| typedef struct ThreadInitCallback_ | ThreadInitCallback |
Functions | |
| bool | SCThreadRegisterInitCallback (SCThreadInitCallbackFn fn, void *user) |
| Register a thread init callback. | |
| void | SCThreadRunInitCallbacks (ThreadVars *tv) |
| typedef struct ThreadInitCallback_ ThreadInitCallback |
| bool SCThreadRegisterInitCallback | ( | SCThreadInitCallbackFn | fn, |
| void * | user | ||
| ) |
Register a thread init callback.
Register a user provided function to be called every time a thread is initialized for use.
| fn | Pointer to function to be called |
| user | Additional user data to be passed to callback |
Definition at line 28 of file thread-callbacks.c.
References ThreadInitCallback_::Callback, ThreadInitCallback_::next, SCCalloc, and ThreadInitCallback_::user.
| void SCThreadRunInitCallbacks | ( | ThreadVars * | tv | ) |
Definition at line 48 of file thread-callbacks.c.
References ThreadInitCallback_::Callback, ThreadInitCallback_::next, tv, and ThreadInitCallback_::user.
Referenced by TmThreadCreate().
