Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes
CSemaphore Class Reference

#include <sync.h>

+ Collaboration diagram for CSemaphore:

Public Member Functions

 CSemaphore (int init)
 
void wait ()
 
bool try_wait ()
 
void post ()
 

Private Attributes

boost::condition_variable condition
 
boost::mutex mutex
 
int value
 

Detailed Description

Definition at line 172 of file sync.h.

Constructor & Destructor Documentation

CSemaphore::CSemaphore ( int  init)
inline

Definition at line 180 of file sync.h.

Member Function Documentation

void CSemaphore::post ( )
inline

Definition at line 198 of file sync.h.

Referenced by CSemaphoreGrant::Release(), and StopNode().

+ Here is the caller graph for this function:

bool CSemaphore::try_wait ( )
inline

Definition at line 190 of file sync.h.

Referenced by CSemaphoreGrant::TryAcquire().

+ Here is the caller graph for this function:

void CSemaphore::wait ( )
inline

Definition at line 182 of file sync.h.

Referenced by CSemaphoreGrant::Acquire().

+ Here is the caller graph for this function:

Field Documentation

boost::condition_variable CSemaphore::condition
private

Definition at line 175 of file sync.h.

boost::mutex CSemaphore::mutex
private

Definition at line 176 of file sync.h.

int CSemaphore::value
private

Definition at line 177 of file sync.h.


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