Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CSemaphoreGrant Class Reference

RAII-style semaphore lock. More...

#include <sync.h>

Collaboration diagram for CSemaphoreGrant:
[legend]

Public Member Functions

void Acquire ()
 
void Release ()
 
bool TryAcquire ()
 
void MoveTo (CSemaphoreGrant &grant)
 
 CSemaphoreGrant ()
 
 CSemaphoreGrant (CSemaphore &sema, bool fTry=false)
 
 ~CSemaphoreGrant ()
 
 operator bool ()
 

Private Attributes

CSemaphoresem
 
bool fHaveGrant
 

Detailed Description

RAII-style semaphore lock.

Definition at line 209 of file sync.h.

Constructor & Destructor Documentation

CSemaphoreGrant::CSemaphoreGrant ( )
inline

Definition at line 244 of file sync.h.

CSemaphoreGrant::CSemaphoreGrant ( CSemaphore sema,
bool  fTry = false 
)
inline

Definition at line 246 of file sync.h.

Here is the call graph for this function:

CSemaphoreGrant::~CSemaphoreGrant ( )
inline

Definition at line 253 of file sync.h.

Here is the call graph for this function:

Member Function Documentation

void CSemaphoreGrant::Acquire ( )
inline

Definition at line 216 of file sync.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSemaphoreGrant::MoveTo ( CSemaphoreGrant grant)
inline

Definition at line 236 of file sync.h.

Here is the call graph for this function:

Here is the caller graph for this function:

CSemaphoreGrant::operator bool ( )
inline

Definition at line 257 of file sync.h.

void CSemaphoreGrant::Release ( )
inline

Definition at line 223 of file sync.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CSemaphoreGrant::TryAcquire ( )
inline

Definition at line 230 of file sync.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool CSemaphoreGrant::fHaveGrant
private

Definition at line 213 of file sync.h.

CSemaphore* CSemaphoreGrant::sem
private

Definition at line 212 of file sync.h.


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