blocxx
Public Member Functions | Private Attributes | Friends

BLOCXX_NAMESPACE::NonRecursiveMutexLock Class Reference

Note that descriptions of what exceptions may be thrown assumes that object is used correctly, i.e., method preconditions are satisfied. More...

#include <NonRecursiveMutexLock.hpp>

List of all members.

Public Member Functions

 NonRecursiveMutexLock (NonRecursiveMutex &mutex, bool initially_locked=true)
 ~NonRecursiveMutexLock ()
void lock ()
void release ()
 NonRecursiveMutexLock (const NonRecursiveMutexLock &arg)
bool isLocked () const

Private Attributes

NonRecursiveMutexm_mutex
bool m_locked

Friends

class Condition

Detailed Description

Note that descriptions of what exceptions may be thrown assumes that object is used correctly, i.e., method preconditions are satisfied.

Definition at line 52 of file NonRecursiveMutexLock.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::NonRecursiveMutexLock::NonRecursiveMutexLock ( NonRecursiveMutex mutex,
bool  initially_locked = true 
) [inline, explicit]
Exceptions:
noexception

Definition at line 58 of file NonRecursiveMutexLock.hpp.

BLOCXX_NAMESPACE::NonRecursiveMutexLock::~NonRecursiveMutexLock ( ) [inline]

Definition at line 66 of file NonRecursiveMutexLock.hpp.

BLOCXX_NAMESPACE::NonRecursiveMutexLock::NonRecursiveMutexLock ( const NonRecursiveMutexLock arg) [inline]
Exceptions:
noexception

Definition at line 103 of file NonRecursiveMutexLock.hpp.

References m_locked.


Member Function Documentation

bool BLOCXX_NAMESPACE::NonRecursiveMutexLock::isLocked ( ) const [inline]
Exceptions:
noexception

Definition at line 111 of file NonRecursiveMutexLock.hpp.

Referenced by BLOCXX_NAMESPACE::Condition::timedWait().

void BLOCXX_NAMESPACE::NonRecursiveMutexLock::lock ( ) [inline]
Precondition:
Mutex not already locked by this thread.
Exceptions:
noexception

Definition at line 84 of file NonRecursiveMutexLock.hpp.

References BLOCXX_NAMESPACE::NonRecursiveMutex::acquire(), and m_mutex.

void BLOCXX_NAMESPACE::NonRecursiveMutexLock::release ( ) [inline]
Precondition:
Mutex currently locked by this thread and object.
Exceptions:
noexception

Definition at line 94 of file NonRecursiveMutexLock.hpp.

References m_mutex, and BLOCXX_NAMESPACE::NonRecursiveMutex::release().


Friends And Related Function Documentation

friend class Condition [friend]

Definition at line 128 of file NonRecursiveMutexLock.hpp.


Member Data Documentation

Definition at line 127 of file NonRecursiveMutexLock.hpp.

Referenced by NonRecursiveMutexLock().

Definition at line 126 of file NonRecursiveMutexLock.hpp.


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