|
libcmutils 0.6.5
Multi-platform C99 utility library
|
A threadpool object. More...
Data Fields | |
| void(* | Execute )(CMUTIL_ThreadPool *tp, CMProcCB runnable, void *udata) |
| Execute a job in this threadpool. | |
| void(* | Wait )(CMUTIL_ThreadPool *tp) |
| Wait until all jobs are finished. | |
| void(* | Destroy )(CMUTIL_ThreadPool *tp) |
| Destroy all resources related with this object. | |
A threadpool object.
| void(* CMUTIL_ThreadPool::Execute) (CMUTIL_ThreadPool *tp, CMProcCB runnable, void *udata) |
Execute a job in this threadpool.
This method will return immediately. Job will be queued and executed when any idle thread is available in this pool.
| tp | This threadpool object. |
| runnable | A callback function to be executed. |
| udata | User data object which would be passed to the runnable callback function. |
| void(* CMUTIL_ThreadPool::Wait) (CMUTIL_ThreadPool *tp) |
Wait until all jobs are finished.
| tp | This threadpool object |
| void(* CMUTIL_ThreadPool::Destroy) (CMUTIL_ThreadPool *tp) |
Destroy all resources related with this object.
| tp | This threadpool object |