NCBI C++ ToolKit
|
Search Toolkit Book for CMutex
#include <corelib/ncbimtx.hpp>
Public Types | |
typedef CMutexGuard | TReadLockGuard |
Define Read Lock Guard. More... | |
typedef CMutexGuard | TWriteLockGuard |
Define Write Lock Guard. More... | |
Public Member Functions | |
CMutex (void) | |
Constructor. More... | |
~CMutex (void) | |
Destructor. More... | |
operator SSystemMutex & (void) | |
Get SSystemMutex. More... | |
void | Lock (void) |
Lock mutex. More... | |
bool | TryLock (void) |
Try locking mutex. More... | |
void | Unlock (void) |
Unlock mutex. More... | |
Private Member Functions | |
CMutex (const CMutex &) | |
Private copy constructor to disallow initialization. More... | |
CMutex & | operator= (const CMutex &) |
Private assignment operator to disallow assignment. More... | |
Private Attributes | |
SSystemMutex | m_Mutex |
System mutex. More... | |
Friends | |
class | CRWLock |
Allow use of m_Mtx and m_Owner members directly. More... | |
CMutex –.
Mutex that allows nesting with runtime checks.
Allows for recursive locks by the same thread. Checks the mutex owner before unlocking. This mutex should be used when performance is less important than data protection. For faster performance see CFastMutex.
Definition at line 748 of file ncbimtx.hpp.