#include <MboSynch.h>
Public Member Functions | |
CUnlock (const ILock &lx) | |
virtual | ~CUnlock () |
The Unlock automatically calls Enter() upon creation and Leave() in destruction but exchanges Enter/Leave calles for the given Lock. Hence it temporarily unlocks the given Lock.
As long as the Lock is based on a single CriticalSection or Mutex all enter levels will be quit on creation and restored on destruction.
This class is distributed under the following license GNU Lesser General Public License, version 2.1.
Definition at line 1265 of file MboSynch.h.
mbo::CUnlock::CUnlock | ( | const ILock & | lx | ) | [inline, explicit] |
constructor (from any ILock pointer)
lx | reference to Lock to use |
Definition at line 1272 of file MboSynch.h.
01273 : m_lx(lx) 01274 , m_lLevel(lx.GetLevel()) 01275 { 01276 assert(m_lLevel); 01277 Enter(); 01278 }
virtual mbo::CUnlock::~CUnlock | ( | ) | [inline, virtual] |
Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:13 2008 for MBO-lib by ![]() |