#include <MboSynch.h>
Public Member Functions | |
CLockSingle (const ICriticalSection *pmx) | |
CLockSingle (const CLockSingle &lx) | |
virtual | ~CLockSingle () |
virtual void | Enter () const |
virtual void | Leave () const |
virtual unsigned long | GetLevel () const |
This Lock automatically calls Enter() upon creation and Leave() in destruction.
Definition at line 445 of file MboSynch.h.
mbo::CLockSingle::CLockSingle | ( | const ICriticalSection * | pmx | ) | [inline, explicit] |
constructor to allow selective call to Enter()
/*! default constructor which directly calls Enter()
pmx | Mutex to use for Lock |
Definition at line 456 of file MboSynch.h.
00459 : m_pmx(pmx) 00460 { 00461 assert(pmx); 00462 Enter(); 00463 }
mbo::CLockSingle::CLockSingle | ( | const CLockSingle & | lx | ) | [inline, explicit] |
copy constructor
Ensure the lock is entered since the destructor will call Leave().
Definition at line 469 of file MboSynch.h.
00472 : m_pmx(lx.m_pmx) 00473 { 00474 Enter(); 00475 }
virtual mbo::CLockSingle::~CLockSingle | ( | ) | [inline, virtual] |
virtual void mbo::CLockSingle::Enter | ( | ) | const [inline, virtual] |
virtual void mbo::CLockSingle::Leave | ( | ) | const [inline, virtual] |
virtual unsigned long mbo::CLockSingle::GetLevel | ( | ) | const [inline, virtual] |
This may not be correctly available in which case 1 is returned to signal Enter state.
Implements mbo::ILock.
Definition at line 499 of file MboSynch.h.
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:12 2008 for MBO-lib by ![]() |