suricata
util-pool-thread.h File Reference
#include "threads.h"
#include "util-pool.h"
Include dependency graph for util-pool-thread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PoolThreadElement_
 
struct  PoolThread_
 
typedef struct PoolThreadElement_ PoolThreadElement
 
typedef struct PoolThread_ PoolThread
 
typedef uint16_t PoolThreadId
 
void PoolThreadRegisterTests (void)
 
PoolThreadPoolThreadInit (int threads, uint32_t size, uint32_t prealloc_size, uint32_t elt_size, void *(*Alloc)(void), int(*Init)(void *, void *), void *InitData, void(*Cleanup)(void *), void(*Free)(void *))
 initialize a thread pool More...
 
int PoolThreadExpand (PoolThread *pt)
 grow a thread pool by one More...
 
void PoolThreadFree (PoolThread *pt)
 destroy the thread pool More...
 
void * PoolThreadGetById (PoolThread *pt, uint16_t id)
 get data from thread pool by thread id More...
 
void PoolThreadReturn (PoolThread *pt, void *data)
 return data to thread pool More...
 
void PoolThreadLock (PoolThread *pt, PoolThreadId id)
 
void PoolThreadReturnRaw (PoolThread *pt, PoolThreadId id, void *data)
 
void PoolThreadUnlock (PoolThread *pt, PoolThreadId id)
 
int PoolThreadSize (PoolThread *pt)
 get size of PoolThread (number of 'threads', so array elements) More...
 

Detailed Description

Typedef Documentation

◆ PoolThread

typedef struct PoolThread_ PoolThread

◆ PoolThreadElement

Definition at line 1 of file util-pool-thread.h.

◆ PoolThreadId

typedef uint16_t PoolThreadId

per data item reserved data containing the thread pool id

Definition at line 60 of file util-pool-thread.h.