NCBI C++ ToolKit
|
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< CNoLock > | TReadLockGuard |
typedef CGuard< CNoLock > | TWriteLockGuard |
Public Member Functions | |
void | Lock (void) const |
void | Unlock (void) const |
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).
typedef CGuard<CNoLock> CNoLock::TReadLockGuard |
typedef CGuard<CNoLock> CNoLock::TWriteLockGuard |