Sleeping Wombat GUI  0.100
swGUI
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.

Constructor & Destructor Documentation

sw::Semaphore::Semaphore ( Size  initCount)
inlineexplicit

Member Function Documentation

void sw::Semaphore::Down ( )
bool sw::Semaphore::TryDown ( )
void sw::Semaphore::Up ( )

Member Data Documentation

std::condition_variable sw::Semaphore::m_condVariable
private
Size sw::Semaphore::m_count
private
std::mutex sw::Semaphore::m_lock
private

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