OW_NAMESPACE::Semaphore Class Reference

#include <OW_Semaphore.hpp>

Collaboration diagram for OW_NAMESPACE::Semaphore:

Collaboration graph
[legend]
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 46 of file OW_Semaphore.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::Semaphore::Semaphore  )  [inline]
 

Definition at line 49 of file OW_Semaphore.hpp.

OW_NAMESPACE::Semaphore::Semaphore Int32  initCount  )  [inline]
 

Definition at line 52 of file OW_Semaphore.hpp.

OW_NAMESPACE::Semaphore::Semaphore const Semaphore  )  [private]
 


Member Function Documentation

Int32 OW_NAMESPACE::Semaphore::getCount  )  [inline]
 

Definition at line 84 of file OW_Semaphore.hpp.

References m_curCount, and m_mutex.

Semaphore& OW_NAMESPACE::Semaphore::operator= const Semaphore  )  [private]
 

void OW_NAMESPACE::Semaphore::signal  )  [inline]
 

Definition at line 78 of file OW_Semaphore.hpp.

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

bool OW_NAMESPACE::Semaphore::timedWait UInt32  sTimeout,
UInt32  usTimeout = 0
[inline]
 

Definition at line 64 of file OW_Semaphore.hpp.

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

void OW_NAMESPACE::Semaphore::wait  )  [inline]
 

Definition at line 55 of file OW_Semaphore.hpp.

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


Member Data Documentation

Condition OW_NAMESPACE::Semaphore::m_cond [private]
 

Definition at line 91 of file OW_Semaphore.hpp.

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

Int32 OW_NAMESPACE::Semaphore::m_curCount [private]
 

Definition at line 90 of file OW_Semaphore.hpp.

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

NonRecursiveMutex OW_NAMESPACE::Semaphore::m_mutex [private]
 

Definition at line 92 of file OW_Semaphore.hpp.

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


The documentation for this class was generated from the following file:
Generated on Thu Feb 9 09:14:24 2006 for openwbem by  doxygen 1.4.6