Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Files Functions Variables Typedefs Macros Groups
Data Fields
THREAD_POOL_NODE Struct Reference
THREADS: tools to create and manage a thread pool

`#include <n_thread_pool.h>`

## Data Fields

void *(* | func )(void *param)
void * | param
sem_t | th_start
sem_t | th_end
pthread_mutex_t | lock
int | type
int | state
pthread_t | thr

## Detailed Description

A thread pool node

Definition at line 40 of file n_thread_pool.h.

## Field Documentation

void*(* func)(void *param)

function to call in the thread

Definition at line 43 of file n_thread_pool.h.

pthread_mutex_t lock

mutex to prevent mutual access

Definition at line 51 of file n_thread_pool.h.

void* param

if not NULL , passed as argument

Definition at line 45 of file n_thread_pool.h.

int state

state of the thread

Definition at line 55 of file n_thread_pool.h.

sem_t th_end

ending semaphore

Definition at line 47 of file n_thread_pool.h.

sem_t th_start

starting semaphore

Definition at line 47 of file n_thread_pool.h.

pthread_t thr

thread id

Definition at line 57 of file n_thread_pool.h.

int type

SYNCED or DIRECT process start

Definition at line 53 of file n_thread_pool.h.

The documentation for this struct was generated from the following file:

- include/n_thread_pool.h