|
libsheepy
|

Go to the source code of this file.
Data Structures | |
| struct | tpoolArgs |
Macros | |
| #define | tpoolLockCount 512 |
| #define | tpoolAdd(task, args) tpool_add_work(tpool, task, args) |
| #define | tpoolWait tpool_wait(tpool) |
| #define | tpoolKill tpool_destroy(tpool) |
| #define | tpoolPause tpool_pause(tpool) |
| #define | tpoolResume tpool_resume(tpool) |
| #define | tpoolNum tpool_num_threads_working(tpool) |
Typedefs | |
| typedef struct tpool_ * | threadpool |
Functions | |
| void | tpoolLock (int position) |
| void | tpoolUlock (int position) |
| threadpool | tpool_init (int num_threads) |
| int | tpool_add_work (threadpool, void(*function_p)(void *), void *arg_p) |
| void | tpool_wait (threadpool) |
| void | tpool_pause (threadpool) |
| void | tpool_resume (threadpool) |
| void | tpool_destroy (threadpool) |
| int | tpool_num_threads_working (threadpool) |
Variables | |
| pthread_mutex_t | tpoolLocks [tpoolLockCount] |
| threadpool | tpool |
| #define tpoolLockCount 512 |
| #define tpoolAdd | ( | task, | |
| args | |||
| ) | tpool_add_work(tpool, task, args) |
| #define tpoolWait tpool_wait(tpool) |
| #define tpoolKill tpool_destroy(tpool) |
| #define tpoolPause tpool_pause(tpool) |
| #define tpoolResume tpool_resume(tpool) |
| #define tpoolNum tpool_num_threads_working(tpool) |
| typedef struct tpool_* threadpool |
| void tpoolLock | ( | int | position | ) |
| void tpoolUlock | ( | int | position | ) |
| threadpool tpool_init | ( | int | num_threads | ) |
Definition at line 137 of file tpool.c.

| int tpool_add_work | ( | threadpool | , |
| void(*)(void *) | function_p, | ||
| void * | arg_p | ||
| ) |
| void tpool_wait | ( | threadpool | ) |
| void tpool_pause | ( | threadpool | ) |
| void tpool_resume | ( | threadpool | ) |
| void tpool_destroy | ( | threadpool | ) |
| int tpool_num_threads_working | ( | threadpool | ) |
| pthread_mutex_t tpoolLocks[tpoolLockCount] |
| threadpool tpool |
1.8.13