NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CWeakExecuteGuard Class Reference

Search Toolkit Book for CWeakExecuteGuard

#include <gui/objutils/execute_lock_guard.hpp>

+ Inheritance diagram for CWeakExecuteGuard:
+ Collaboration diagram for CWeakExecuteGuard:

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< ICommandProccessorm_Proccessor
 

Detailed Description

Definition at line 43 of file execute_lock_guard.hpp.

Constructor & Destructor Documentation

◆ CWeakExecuteGuard()

CWeakExecuteGuard::CWeakExecuteGuard ( ICommandProccessor proccessor)
inline

Definition at line 46 of file execute_lock_guard.hpp.

◆ ~CWeakExecuteGuard()

CWeakExecuteGuard::~CWeakExecuteGuard ( )

Definition at line 38 of file execute_lock_guard.cpp.

References Unlock().

Member Function Documentation

◆ Lock()

void CWeakExecuteGuard::Lock ( ICanceled canceled)
virtual

Implements ILocker.

Definition at line 51 of file execute_lock_guard.cpp.

References ICanceled::IsCanceled(), SleepMilliSec(), and TryLock().

◆ Locked()

bool CWeakExecuteGuard::Locked ( ) const
inline

Definition at line 49 of file execute_lock_guard.hpp.

References m_Locked.

◆ TryLock()

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().

◆ Unlock()

void CWeakExecuteGuard::Unlock ( void  )
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().

Member Data Documentation

◆ m_Locked

bool CWeakExecuteGuard::m_Locked
private

Definition at line 56 of file execute_lock_guard.hpp.

Referenced by Locked(), TryLock(), and Unlock().

◆ m_Proccessor

CWeakIRef<ICommandProccessor> CWeakExecuteGuard::m_Proccessor
private

Definition at line 57 of file execute_lock_guard.hpp.

Referenced by TryLock(), and Unlock().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:07 2024 by modify_doxy.py rev. 669887