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