22#ifndef SURICATA_THREAD_STORAGE_H
23#define SURICATA_THREAD_STORAGE_H
43 void *(*Alloc)(
unsigned int),
void (*Free)(
void *));
Per thread variable structure.
void RegisterThreadStorageTests(void)
void ThreadFreeStorageById(ThreadVars *tv, ThreadStorageId id)
unsigned int ThreadStorageSize(void)
void * ThreadGetStorageById(const ThreadVars *tv, ThreadStorageId id)
ThreadStorageId ThreadStorageRegister(const char *name, const unsigned int size, void *(*Alloc)(unsigned int), void(*Free)(void *))
void * ThreadAllocStorageById(ThreadVars *tv, ThreadStorageId id)
int ThreadSetStorageById(ThreadVars *tv, ThreadStorageId id, void *ptr)
void ThreadFreeStorage(ThreadVars *tv)