jubilant-funicular
|
Public Member Functions | |
Semaphore (int value=0) | |
Constructs Semaphore with given value. | |
void | wait () |
Halts until value of Semaphore is > 0. | |
void | signal () |
Increments value of Semaphore. | |
Semaphore (const Semaphore &)=delete | |
const Semaphore & | operator= (const Semaphore &)=delete |
Private Attributes | |
std::mutex | m_mutex |
Thread safety stuff. | |
std::condition_variable_any | m_cv |
int | m_value |
The number of resources available. | |
Definition at line 17 of file ThreadPool.h.