#include <MboSynch.h>
Public Member Functions | |
CMutexFake () | |
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 |
Protected Attributes | |
IncDecVal | m_lEntered |
Definition at line 1050 of file MboSynch.h.
mbo::CMutexFake::CMutexFake | ( | ) |
constructor
virtual void mbo::CMutexFake::Enter | ( | ) | const [virtual] |
Enter the Mutex (enter critical section)
Reimplemented from mbo::IMutex.
virtual void mbo::CMutexFake::Leave | ( | ) | const [virtual] |
Leave the Mutex (leave critical section)
Implements mbo::ICriticalSection.
virtual bool mbo::CMutexFake::Try | ( | DWORD | nMilliseconds = 0 |
) | const [virtual] |
Try to enter the Mutex (enter critical section)
nMilliseconds | time to try to enter in milliseconds |
Implements mbo::IMutex.
virtual CLock mbo::CMutexFake::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::CMutexFake::GetLevel | ( | ) | const [virtual] |
Implements mbo::ICriticalSection.
virtual IncDecVal mbo::CMutexFake::IncEntered | ( | ) | const [protected, virtual] |
Inform that the Mutex was entered.
Implements mbo::IMutex.
virtual IncDecVal mbo::CMutexFake::DecEntered | ( | ) | const [protected, virtual] |
Inform that the Mutex was leaved.
Implements mbo::IMutex.
IncDecVal mbo::CMutexFake::m_lEntered [mutable, protected] |
number of times Mutex was entered
Definition at line 1094 of file MboSynch.h.
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:13 2008 for MBO-lib by ![]() |