Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Public Member Functions | Private Attributes | List of all members
sw::Semaphore Class Reference

Semaphore class. More...

#include <Semaphore.h>

Public Member Functions

 Semaphore (Size initCount)
 
void Down ()
 
bool TryDown ()
 
void Up ()
 

Private Attributes

std::mutex m_lock
 
std::condition_variable m_condVariable
 
Size m_count
 

Detailed Description

Semaphore class.


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