Go to the documentation of this file.
36 tname,
"packetpool",
"packetpool",
"packetpool",
"packetpool",
"lib");
43 if (tm_module == NULL) {
44 SCLogError(
"TmModuleGetByName DecodeLib failed");
50 if (tm_module == NULL) {
51 SCLogError(
"TmModuleGetByName for FlowWorker failed");
const char * thread_name_workers
TmEcode TmThreadLibSpawn(ThreadVars *tv)
Spawns a "fake" lib thread associated with the ThreadVars instance tv.
ThreadVars * TmThreadCreatePacketHandler(const char *name, const char *inq_name, const char *inqh_name, const char *outq_name, const char *outqh_name, const char *slots)
Creates and returns a TV instance for a Packet Processing Thread. This function doesn't support custo...
void TmThreadsSetFlag(ThreadVars *tv, uint32_t flag)
Set a thread flag.
#define TM_THREAD_NAME_MAX
TmModule * TmModuleGetByName(const char *name)
get a tm module ptr by name
Per thread variable structure.
int SCRunModeLibSpawnWorker(void *td)
start the "fake" worker.
void TmSlotSetFuncAppend(ThreadVars *tv, TmModule *tm, const void *data)
Appends a new entry to the slots.
void TmThreadAppend(ThreadVars *tv, int type)
Appends this TV to tv_root based on its type.
#define SCLogError(...)
Macro used to log ERROR messages.
ThreadVars * SCRunModeLibCreateThreadVars(int worker_id)
Create ThreadVars for use by a user provided thread.