Webmaster  |  Imprint 
C++ Server Pages
Main  |  License  |  Documentation  |  Download 

RecursiveLock Class Reference

Lock class for recursive mutexes.

#include <cxxtools/mutex.h>

Inheritance diagram for RecursiveLock:

List of all members.

Public Member Functions

 RecursiveLock (RecursiveMutex &m, bool doLock=true, bool isLocked=false)
 Construct to guard a RecursiveMutex.
 ~RecursiveLock ()
 Unlocks the mutex unless unlock() was called.
void lock ()
void unlock ()
 Unlock so that the destructor does not unlock.
RecursiveMutexmutex ()
 Returns the guarded the mutex object.
const RecursiveMutexmutex () const
 Returns the guarded the mutex object.


Constructor & Destructor Documentation

RecursiveLock ( RecursiveMutex m,
bool  doLock = true,
bool  isLocked = false 
)

Constructs a RecursiveLock object and locks the enclosing recursive mutex if doLock is true. If isLocked is true, the RecursiveLock will only unlock the given mutex in the destructor, but not lock it in the constructor.

Copyright © 2008 The Tntnet Development Team
Tntnet 1.6