blocxx
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BLOCXX_NAMESPACE::Semaphore Class Reference

#include <Semaphore.hpp>

Public Member Functions

 Semaphore ()
 
 Semaphore (Int32 initCount)
 
void wait ()
 
BLOCXX_DEPRECATED bool timedWait (UInt32 sTimeout, UInt32 usTimeout=0)
 
bool timedWait (const Timeout &timeout)
 
void signal ()
 
Int32 getCount ()
 

Private Member Functions

 Semaphore (const Semaphore &)
 
Semaphoreoperator= (const Semaphore &)
 

Private Attributes

Int32 m_curCount
 
Condition m_cond
 
NonRecursiveMutex m_mutex
 

Detailed Description

Definition at line 81 of file Semaphore.hpp.

Constructor & Destructor Documentation

◆ Semaphore() [1/3]

BLOCXX_NAMESPACE::Semaphore::Semaphore ( )
inline

Definition at line 114 of file Semaphore.hpp.

◆ Semaphore() [2/3]

BLOCXX_NAMESPACE::Semaphore::Semaphore ( Int32  initCount)
inline

Definition at line 117 of file Semaphore.hpp.

◆ Semaphore() [3/3]

BLOCXX_NAMESPACE::Semaphore::Semaphore ( const Semaphore )
private

Member Function Documentation

◆ getCount()

Int32 BLOCXX_NAMESPACE::Semaphore::getCount ( )
inline

Definition at line 154 of file Semaphore.hpp.

◆ operator=()

Semaphore& BLOCXX_NAMESPACE::Semaphore::operator= ( const Semaphore )
private

◆ signal()

void BLOCXX_NAMESPACE::Semaphore::signal ( )
inline

Definition at line 148 of file Semaphore.hpp.

◆ timedWait() [1/2]

bool BLOCXX_NAMESPACE::Semaphore::timedWait ( const Timeout timeout)
inline

Definition at line 133 of file Semaphore.hpp.

◆ timedWait() [2/2]

BLOCXX_DEPRECATED bool BLOCXX_NAMESPACE::Semaphore::timedWait ( UInt32  sTimeout,
UInt32  usTimeout = 0 
)
inline

Definition at line 129 of file Semaphore.hpp.

◆ wait()

void BLOCXX_NAMESPACE::Semaphore::wait ( )
inline

Definition at line 120 of file Semaphore.hpp.

Member Data Documentation

◆ m_cond

Condition BLOCXX_NAMESPACE::Semaphore::m_cond
private

Definition at line 161 of file Semaphore.hpp.

◆ m_curCount

Int32 BLOCXX_NAMESPACE::Semaphore::m_curCount
private

Definition at line 160 of file Semaphore.hpp.

◆ m_mutex

NonRecursiveMutex BLOCXX_NAMESPACE::Semaphore::m_mutex
private

Definition at line 162 of file Semaphore.hpp.


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