OW_NAMESPACE::Mutex Class Reference

#include <OW_Mutex.hpp>

Collaboration diagram for OW_NAMESPACE::Mutex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Member Functions

 Mutex (const Mutex &)
Mutexoperator= (const Mutex &)

Private Attributes

Mutex_t m_mutex

Detailed Description

Definition at line 44 of file OW_Mutex.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::Mutex::Mutex  ) 
 

Create a new recursive Mutex object.

Definition at line 44 of file OW_Mutex.cpp.

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

OW_NAMESPACE::Mutex::~Mutex  ) 
 

Destroy this Mutex object.

Definition at line 51 of file OW_Mutex.cpp.

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

OW_NAMESPACE::Mutex::Mutex const Mutex  )  [private]
 


Member Function Documentation

void OW_NAMESPACE::Mutex::acquire  ) 
 

Acquire ownership of this Mutex object.

This call will block if another thread has ownership of this Mutex. When it returns, the current thread will be the owner of this Mutex object.

Definition at line 60 of file OW_Mutex.cpp.

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

Referenced by OW_NAMESPACE::Exception::Exception(), OW_NAMESPACE::NonRecursiveMutexLock::lock(), and OW_NAMESPACE::MutexLock::lock().

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

bool OW_NAMESPACE::Mutex::release  ) 
 

Release ownership of this Mutex 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 70 of file OW_Mutex.cpp.

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

Referenced by OW_NAMESPACE::NonRecursiveMutexLock::release(), OW_NAMESPACE::MutexLock::release(), and OW_NAMESPACE::Exception::~Exception().


Member Data Documentation

Mutex_t OW_NAMESPACE::Mutex::m_mutex [private]
 

Definition at line 69 of file OW_Mutex.hpp.

Referenced by acquire(), Mutex(), release(), and ~Mutex().


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