NCBI C++ ToolKit
Public Types | Public Member Functions | List of all members
CNoLock Class Reference

Search Toolkit Book for CNoLock

CNoLock is a simple no-op lock which does no real locking. More...

#include <corelib/guard.hpp>

Public Types

typedef CGuard< CNoLockTReadLockGuard
 
typedef CGuard< CNoLockTWriteLockGuard
 

Public Member Functions

void Lock (void) const
 
void Unlock (void) const
 

Detailed Description

CNoLock is a simple no-op lock which does no real locking.

The class can be used as a template argument instead of normal locks (e.g. CMutex).

Definition at line 214 of file guard.hpp.

Member Typedef Documentation

◆ TReadLockGuard

Definition at line 217 of file guard.hpp.

◆ TWriteLockGuard

Definition at line 218 of file guard.hpp.

Member Function Documentation

◆ Lock()

void CNoLock::Lock ( void  ) const
inline

Definition at line 220 of file guard.hpp.

◆ Unlock()

void CNoLock::Unlock ( void  ) const
inline

Definition at line 221 of file guard.hpp.


The documentation for this class was generated from the following file:
Modified on Wed Sep 04 15:05:12 2024 by modify_doxy.py rev. 669887