Public Member Functions | |
ThreadPool (int nWorkers) | |
~ThreadPool () | |
void | submit (Job *job) |
Runs the Job's performInThread() in thread pool and the Job's performInMain() function in main thread after the threadpool job is complete. | |
Classes | |
class | Job |
vol::ThreadPool::ThreadPool | ( | int | nWorkers | ) |
vol::ThreadPool::~ThreadPool | ( | ) |
void vol::ThreadPool::submit | ( | Job * | job | ) |
Runs the Job's performInThread() in thread pool and the Job's performInMain() function in main thread after the threadpool job is complete.
Finally, the passed-in job is deleted (i.e. memory freed).