NCBI C++ ToolKit
|
Search Toolkit Book for CWeakExecuteGuard
#include <gui/objutils/execute_lock_guard.hpp>
Public Member Functions | |
CWeakExecuteGuard (ICommandProccessor &proccessor) | |
~CWeakExecuteGuard () | |
bool | Locked () const |
bool | TryLock () |
virtual void | Lock (ICanceled *canceled) |
virtual void | Unlock () |
Public Member Functions inherited from ILocker | |
virtual | ~ILocker () |
Private Attributes | |
bool | m_Locked |
CWeakIRef< ICommandProccessor > | m_Proccessor |
Definition at line 43 of file execute_lock_guard.hpp.
|
inline |
Definition at line 46 of file execute_lock_guard.hpp.
CWeakExecuteGuard::~CWeakExecuteGuard | ( | ) |
Definition at line 38 of file execute_lock_guard.cpp.
References Unlock().
|
virtual |
Implements ILocker.
Definition at line 51 of file execute_lock_guard.cpp.
References ICanceled::IsCanceled(), SleepMilliSec(), and TryLock().
|
inline |
Definition at line 49 of file execute_lock_guard.hpp.
References m_Locked.
bool CWeakExecuteGuard::TryLock | ( | void | ) |
Definition at line 43 of file execute_lock_guard.cpp.
References CWeakIRef< Interface, Locker >::Lock(), m_Locked, and m_Proccessor.
Referenced by Lock().
|
virtual |
Implements ILocker.
Definition at line 60 of file execute_lock_guard.cpp.
References CWeakIRef< Interface, Locker >::Lock(), m_Locked, and m_Proccessor.
Referenced by ~CWeakExecuteGuard().
|
private |
Definition at line 56 of file execute_lock_guard.hpp.
|
private |
Definition at line 57 of file execute_lock_guard.hpp.