Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cSemaphoreLock Class Reference

#include <cSemaphore.h>

Public Member Functions

 cSemaphoreLock (cSemaphore &Sem)
 
 cSemaphoreLock (cSemaphore &Sem, TIMESYSD_t tWait)
 
 ~cSemaphoreLock ()
 
bool isLocked () const
 
bool LockWait (TIMESYSD_t tWait=cTimeSys::k_INF)
 

Detailed Description

Hold a single lock on the cSemaphore for the lifetime of this object instance.

Constructor & Destructor Documentation

◆ cSemaphoreLock() [1/2]

GrayLib::cSemaphoreLock::cSemaphoreLock ( cSemaphore Sem)
inline

◆ cSemaphoreLock() [2/2]

GrayLib::cSemaphoreLock::cSemaphoreLock ( cSemaphore Sem,
TIMESYSD_t  tWait 
)
inline

◆ ~cSemaphoreLock()

GrayLib::cSemaphoreLock::~cSemaphoreLock ( )
inline

release my lock. if i have one.

Member Function Documentation

◆ isLocked()

bool GrayLib::cSemaphoreLock::isLocked ( ) const
inline

◆ LockWait()

bool GrayLib::cSemaphoreLock::LockWait ( TIMESYSD_t  tWait = cTimeSys::k_INF)
inline

Acquire a single lock on the semaphore.


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