OW_NAMESPACE::NonRecursiveMutex Class Reference

#include <OW_NonRecursiveMutex.hpp>

Collaboration diagram for OW_NAMESPACE::NonRecursiveMutex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NonRecursiveMutex ()
 Create a new NonRecursiveMutex object.
 ~NonRecursiveMutex ()
 Destroy this NonRecursiveMutex object.
void acquire ()
 Acquire ownership of this NonRecursiveMutex object.
bool release ()
 Release ownership of this NonRecursiveMutex object.

Private Member Functions

 NonRecursiveMutex (const NonRecursiveMutex &)
NonRecursiveMutexoperator= (const NonRecursiveMutex &)
void conditionPreWait (NonRecursiveMutexLockState &state)
void conditionPostWait (NonRecursiveMutexLockState &state)

Private Attributes

NonRecursiveMutex_t m_mutex

Friends

class Condition

Detailed Description

Definition at line 45 of file OW_NonRecursiveMutex.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::NonRecursiveMutex::NonRecursiveMutex  ) 
 

Create a new NonRecursiveMutex object.

Definition at line 50 of file OW_NonRecursiveMutex.cpp.

References OW_NAMESPACE::NonRecursiveMutexImpl::createMutex(), m_mutex, and OW_THROW.

OW_NAMESPACE::NonRecursiveMutex::~NonRecursiveMutex  ) 
 

Destroy this NonRecursiveMutex object.

Definition at line 57 of file OW_NonRecursiveMutex.cpp.

References OW_NAMESPACE::MutexImpl::destroyMutex(), OW_NAMESPACE::NonRecursiveMutexImpl::destroyMutex(), m_mutex, and OW_NAMESPACE::MutexImpl::releaseMutex().

OW_NAMESPACE::NonRecursiveMutex::NonRecursiveMutex const NonRecursiveMutex  )  [private]
 


Member Function Documentation

void OW_NAMESPACE::NonRecursiveMutex::acquire  ) 
 

Acquire ownership of this NonRecursiveMutex object.

This call will block if another thread has ownership of this NonRecursiveMutex. When it returns, the current thread will be the owner of this NonRecursiveMutex object. If this thread is the owner of the mutex, then an Deadlock exception will be thrown.

Definition at line 66 of file OW_NonRecursiveMutex.cpp.

References OW_NAMESPACE::MutexImpl::acquireMutex(), m_mutex, and OW_THROW.

void OW_NAMESPACE::NonRecursiveMutex::conditionPostWait NonRecursiveMutexLockState state  )  [private]
 

Definition at line 94 of file OW_NonRecursiveMutex.cpp.

References OW_NAMESPACE::NonRecursiveMutexImpl::conditionPostWait(), m_mutex, OW_THROW, and state.

Referenced by OW_NAMESPACE::Condition::doTimedWait(), and OW_NAMESPACE::Condition::doWait().

void OW_NAMESPACE::NonRecursiveMutex::conditionPreWait NonRecursiveMutexLockState state  )  [private]
 

Definition at line 86 of file OW_NonRecursiveMutex.cpp.

References OW_NAMESPACE::NonRecursiveMutexImpl::conditionPreWait(), m_mutex, OW_THROW, and state.

Referenced by OW_NAMESPACE::Condition::doTimedWait(), and OW_NAMESPACE::Condition::doWait().

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

bool OW_NAMESPACE::NonRecursiveMutex::release  ) 
 

Release ownership of this NonRecursiveMutex object.

If another thread is waiting to acquire the ownership of this mutex it will stop blocking and acquire ownership when this call returns.

Definition at line 76 of file OW_NonRecursiveMutex.cpp.

References m_mutex, OW_THROW, and OW_NAMESPACE::MutexImpl::releaseMutex().


Friends And Related Function Documentation

friend class Condition [friend]
 

Definition at line 76 of file OW_NonRecursiveMutex.hpp.


Member Data Documentation

NonRecursiveMutex_t OW_NAMESPACE::NonRecursiveMutex::m_mutex [private]
 

Definition at line 72 of file OW_NonRecursiveMutex.hpp.

Referenced by acquire(), conditionPostWait(), conditionPreWait(), NonRecursiveMutex(), release(), and ~NonRecursiveMutex().


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