|
suricata
|
#include "threadvars.h"

Go to the source code of this file.
Functions | |
| ThreadVars * | SCRunModeLibCreateThreadVars (int worker_id) |
| Create ThreadVars for use by a user provided thread. More... | |
| int | SCRunModeLibSpawnWorker (void *) |
| start the "fake" worker. More... | |
Library runmode.
Definition in file runmode-lib.h.
| ThreadVars* SCRunModeLibCreateThreadVars | ( | int | worker_id | ) |
Create ThreadVars for use by a user provided thread.
Unlike other runmodes, this does not spawn a thread, as the threads are controlled by the application using Suricata as a library.
| worker_id | an ID to give this ThreadVars instance |
Definition at line 29 of file runmode-lib.c.
| int SCRunModeLibSpawnWorker | ( | void * | td | ) |
start the "fake" worker.
This method performs all the initialization tasks.
Definition at line 65 of file runmode-lib.c.
References SCLogError, THV_RUNNING, TM_ECODE_OK, TmThreadLibSpawn(), TmThreadsSetFlag(), and tv.
