jubilant-funicular
Public Member Functions | Private Attributes | List of all members
nta::utils::Semaphore Class Reference
Collaboration diagram for nta::utils::Semaphore:
Collaboration graph
[legend]

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 Semaphoreoperator= (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.
 

Detailed Description

Definition at line 17 of file ThreadPool.h.


The documentation for this class was generated from the following files: