replicode
Public Member Functions | Private Attributes | List of all members
core::Semaphore Class Reference

#include <utils.h>

Inheritance diagram for core::Semaphore:
Inheritance graph
Collaboration diagram for core::Semaphore:
Collaboration graph

Public Member Functions

 Semaphore (uint32_t initialCount=0)
 
void acquire ()
 
void release ()
 
void reset ()
 

Private Attributes

int count
 
std::mutex mutex
 
std::condition_variable_any condition
 

Constructor & Destructor Documentation

core::Semaphore::Semaphore ( uint32_t  initialCount = 0)
inline

Member Function Documentation

void core::Semaphore::acquire ( )
inline
void core::Semaphore::release ( )
inline
void core::Semaphore::reset ( )
inline

Member Data Documentation

std::condition_variable_any core::Semaphore::condition
private
int core::Semaphore::count
private
std::mutex core::Semaphore::mutex
private

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