Resource Tuner
|
#include <ThreadPool.h>
Public Member Functions | |
int8_t | enqueueTask (std::function< void(void *)> callBack, void *arg) |
Enqueue a task for processing by one of ThreadPool's thread. | |
Private Attributes | |
int32_t | mDesiredPoolCapacity |
Desired or Base Thread Pool Capacity. | |
int32_t | mMaxPoolCapacity |
Max Capacity upto which the Thread Pool can scale up. | |
Pre-Allocate thread (Workers) capacity for future use, so as to prevent repeated Thread creation / destruction costs.
Definition at line 87 of file ThreadPool.h.
int8_t ThreadPool::enqueueTask | ( | std::function< void(void *)> | callBack, |
void * | arg | ||
) |
Enqueue a task for processing by one of ThreadPool's thread.
taskCallback | function pointer to the task. |
arg | Pointer to the task arguments. |