Open Lighting Architecture
0.9.1
|
Public Types | |
typedef ola::BaseCallback0 < void > * | Action |
Public Member Functions | |
ThreadPool (unsigned int thread_count) | |
~ThreadPool () | |
bool | Init () |
void | JoinAll () |
void | Execute (Action action) |
ola::thread::ThreadPool::~ThreadPool | ( | ) |
Clean up
void ola::thread::ThreadPool::Execute | ( | Action | action | ) |
Queue the callback. Don't call this after JoinAll() otherwise the closure may not run and will probably leak memory.
bool ola::thread::ThreadPool::Init | ( | ) |
Start the threads
void ola::thread::ThreadPool::JoinAll | ( | ) |
Join all threads