Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CSemaphore Class Reference

#include <sync.h>

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 191 of file sync.h.

Constructor & Destructor Documentation

CSemaphore::CSemaphore ( int  init)
inline

Definition at line 199 of file sync.h.

Member Function Documentation

void CSemaphore::post ( )
inline

Definition at line 219 of file sync.h.

Here is the caller graph for this function:

bool CSemaphore::try_wait ( )
inline

Definition at line 210 of file sync.h.

Here is the caller graph for this function:

void CSemaphore::wait ( )
inline

Definition at line 201 of file sync.h.

Here is the caller graph for this function:

Member Data Documentation

boost::condition_variable CSemaphore::condition
private

Definition at line 194 of file sync.h.

boost::mutex CSemaphore::mutex
private

Definition at line 195 of file sync.h.

int CSemaphore::value
private

Definition at line 196 of file sync.h.


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