Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros Groups
Functions
n_thread_pool.c File Reference
`#include "n_thread_pool.h"`
Include dependency graph for n_thread_pool.c:

Go to the source code of this file.

## Functions

void * | thread_pool_processing_function (void *param)
| Internal thread pool processing function. More...
THREAD_POOL * | new_thread_pool (int nbmaxthr)
| Create a new pool of nbmaxthr threads. More...
int | add_threaded_process (THREAD_POOL *thread_pool, void *(*func_ptr)(void *param), void *param, int mode)
| add a function and params to a thread pool More...
int | start_threaded_pool (THREAD_POOL *thread_pool)
| Launch the process waiting for exectution in the thread pool. More...
int | wait_for_threaded_pool (THREAD_POOL *thread_pool)
| Wait for all the launched process in the thread pool to terminate. More...

## Detailed Description

Thread pool functions

Author
  Castagnier Mickael

Version
  1.0

Date
  30/04/2014

Definition in file n_thread_pool.c.

## Function Documentation

void * thread_pool_processing_function | ( | void * | param | ) |

Internal thread pool processing function.

Parameters

  param | Teh eventual param of a process

Returns
  NULL when exiting

Definition at line 15 of file n_thread_pool.c.

Here is the caller graph for this function: