util-pool-thread.h File Reference
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 PoolThreadReserved
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...
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.

◆ PoolThreadReserved

typedef uint16_t PoolThreadReserved

per data item reserved data containing the thread pool id

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