#include <MboSynch.h>
Public Member Functions | |
MutexList () | |
virtual | ~MutexList () |
virtual void | Enter () const |
virtual void | Leave () const |
virtual bool | Try (DWORD nMilliseconds=0) const |
virtual CLock | GetLock () const |
virtual unsigned long | GetLevel () const |
Protected Member Functions | |
virtual IncDecVal | IncEntered () const |
virtual IncDecVal | DecEntered () const |
This class collects MutexEntry instances which implement the IMutex interface. These lists are used internally be CLockMulti.
Definition at line 1105 of file MboSynch.h.
mbo::MutexList::MutexList | ( | ) |
constructor
virtual mbo::MutexList::~MutexList | ( | ) | [virtual] |
destructor
virtual void mbo::MutexList::Enter | ( | ) | const [virtual] |
Enter all mutexes (enter critical section)
Reimplemented from mbo::IMutex.
virtual void mbo::MutexList::Leave | ( | ) | const [virtual] |
Leave all mutexes (leave critical section)
Implements mbo::ICriticalSection.
virtual bool mbo::MutexList::Try | ( | DWORD | nMilliseconds = 0 |
) | const [virtual] |
Try to enter all Mutexes in the list
When the all mutexes were entered the return value is true.
nMilliseconds | time to try to enter in milliseconds |
Implements mbo::IMutex.
virtual CLock mbo::MutexList::GetLock | ( | ) | const [virtual] |
Get lock for this mutex
The created lock will be returned as an object. That requires full return by value and invoking copy operators. But that is the only possible solution since we need a local copy that will be destructed locally - the sense of the lock.
Implements mbo::IMutex.
virtual unsigned long mbo::MutexList::GetLevel | ( | ) | const [virtual] |
Implements mbo::ICriticalSection.
virtual IncDecVal mbo::MutexList::IncEntered | ( | ) | const [protected, virtual] |
Inform that all mutexes were entered.
Implements mbo::IMutex.
virtual IncDecVal mbo::MutexList::DecEntered | ( | ) | const [protected, virtual] |
Inform that all mutexes were leaved.
Implements mbo::IMutex.
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:13 2008 for MBO-lib by ![]() |