BLOCXX_NAMESPACE::Semaphore Class Reference

#include <Semaphore.hpp>

List of all members.

Public Member Functions

 Semaphore ()
 Semaphore (Int32 initCount)
void wait ()
bool timedWait (UInt32 sTimeout, UInt32 usTimeout=0)
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 48 of file Semaphore.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::Semaphore::Semaphore (  )  [inline]

Definition at line 51 of file Semaphore.hpp.

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

Definition at line 54 of file Semaphore.hpp.

BLOCXX_NAMESPACE::Semaphore::Semaphore ( const Semaphore  )  [private]


Member Function Documentation

void BLOCXX_NAMESPACE::Semaphore::wait (  )  [inline]

Definition at line 57 of file Semaphore.hpp.

References m_cond, m_curCount, m_mutex, and BLOCXX_NAMESPACE::Condition::wait().

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

Definition at line 66 of file Semaphore.hpp.

References m_cond, m_curCount, m_mutex, and BLOCXX_NAMESPACE::Condition::timedWait().

void BLOCXX_NAMESPACE::Semaphore::signal (  )  [inline]

Definition at line 80 of file Semaphore.hpp.

References m_cond, m_curCount, m_mutex, and BLOCXX_NAMESPACE::Condition::notifyAll().

Int32 BLOCXX_NAMESPACE::Semaphore::getCount (  )  [inline]

Definition at line 86 of file Semaphore.hpp.

References m_curCount, and m_mutex.

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


Member Data Documentation

Int32 BLOCXX_NAMESPACE::Semaphore::m_curCount [private]

Definition at line 92 of file Semaphore.hpp.

Referenced by getCount(), signal(), timedWait(), and wait().

Condition BLOCXX_NAMESPACE::Semaphore::m_cond [private]

Definition at line 93 of file Semaphore.hpp.

Referenced by signal(), timedWait(), and wait().

NonRecursiveMutex BLOCXX_NAMESPACE::Semaphore::m_mutex [private]

Definition at line 94 of file Semaphore.hpp.

Referenced by getCount(), signal(), timedWait(), and wait().


The documentation for this class was generated from the following file:
Generated on Fri Sep 21 23:42:37 2007 for blocxx by  doxygen 1.5.3