#include <pthread_pool.h>
Go to the source code of this file.
Data Structures | |
| struct | pthread_subpoolattr_t |
| pthread_subpool_t attribute structure More... | |
| struct | pthread_subpool_t |
| subpool structure More... | |
Functions | |
| int | pthread_subpool_init (pthread_subpool_t *subpool, const pthread_subpoolattr_t *attr, pthread_pool_t *pool) |
| initialize subpool structure | |
| int | pthread_subpool_destroy (pthread_subpool_t *subpool) |
| destroy subpool structure | |
| int | pthread_subpool_addwork (pthread_subpool_t *subpool, void(*routine)(void *), void *arg) |
| add routine(arg) to subpool work to be done | |
| int | pthread_subpool_finishjob (pthread_subpool_t *subpool) |
| signal the subpool that a job has finished | |
| int | pthread_subpool_finishwork (pthread_subpool_t *subpool) |
| suspend calling thread until all subpool work is done | |
| int | pthread_subpoolattr_init (pthread_subpoolattr_t *attr) |
| initialize subpool attribute structure | |
| int | pthread_subpoolattr_destroy (pthread_subpoolattr_t *attr) |
| destroy subpool attribute structure | |
| int pthread_subpool_addwork | ( | pthread_subpool_t * | subpool, | |
| void(*)(void *) | routine, | |||
| void * | arg | |||
| ) |
add routine(arg) to subpool work to be done
| subpool | pointer to subpool structure | |
| routine | pointer to a function | |
| arg | pointer to argument for routine |
| int pthread_subpool_destroy | ( | pthread_subpool_t * | subpool | ) |
destroy subpool structure
| subpool | pointer to subpool structure |
| int pthread_subpool_finishjob | ( | pthread_subpool_t * | subpool | ) |
signal the subpool that a job has finished
| subpool | pointer to subpool structure |
| int pthread_subpool_finishwork | ( | pthread_subpool_t * | subpool | ) |
suspend calling thread until all subpool work is done
| subpool | pointer to subpool structure |
| int pthread_subpool_init | ( | pthread_subpool_t * | subpool, | |
| const pthread_subpoolattr_t * | attr, | |||
| pthread_pool_t * | pool | |||
| ) |
initialize subpool structure
| subpool | pointer to subpool structure | |
| attr | pointer to subpool attribute structure | |
| pool | pointer to pool strucute |
| int pthread_subpoolattr_destroy | ( | pthread_subpoolattr_t * | attr | ) |
destroy subpool attribute structure
| attr | pointer to subpool attribute structure |
| int pthread_subpoolattr_init | ( | pthread_subpoolattr_t * | attr | ) |
initialize subpool attribute structure
| attr | pointer to subpool attribute structure |
1.5.1