CThreadSystemID Class Reference
[Threads]

Search Toolkit Book for CThreadSystemID

#include <ncbimtx.hpp>

List of all members.


Detailed Description

CThreadSystemID --.

Define thread system ID.

The CThreadSystemID is based on the platform dependent thread ID type, TThreadSystemID, defined in ncbithr_conf.hpp.

Definition at line 156 of file ncbimtx.hpp.

Public Types

typedef TThreadSystemID TID
 Define a simpler alias for TThreadSystemID.

Public Member Functions

bool operator== (const CThreadSystemID &id) const
 Equality operator for thread ID.
bool operator!= (const CThreadSystemID &id) const
 Non-equality operator for thread ID.
void Set (const CThreadSystemID &id) volatile
 volatile versions of above methods
bool Is (const CThreadSystemID &id) const volatile
bool IsNot (const CThreadSystemID &id) const volatile

Static Public Member Functions

static CThreadSystemID GetCurrent (void)
 Get the current thread ID.

Public Attributes

TID m_ID
 Thread ID.


Member Typedef Documentation

typedef TThreadSystemID CThreadSystemID::TID
 

Define a simpler alias for TThreadSystemID.

Definition at line 160 of file ncbimtx.hpp.


Member Function Documentation

static CThreadSystemID CThreadSystemID::GetCurrent void   )  [inline, static]
 

Get the current thread ID.

Definition at line 165 of file ncbimtx.hpp.

References id.

Referenced by CDiagContextThreadData::GetThreadData(), CSafeStaticPtr_Base::Init_Lock(), SSystemMutex::Lock(), CRWLock::ReadLock(), s_GetThreadId(), SSystemMutex::TryLock(), CRWLock::TryReadLock(), CRWLock::TryWriteLock(), CRWLock::Unlock(), SSystemMutex::Unlock(), CRWLock::WriteLock(), and CRWLock::x_MayAcquireForReading().

bool CThreadSystemID::Is const CThreadSystemID id  )  const volatile [inline]
 

Definition at line 195 of file ncbimtx.hpp.

References m_ID.

Referenced by CDiagContextThreadData::GetThreadData(), SSystemMutex::Lock(), CRWLock::ReadLock(), SSystemMutex::TryLock(), CRWLock::Unlock(), and CRWLock::WriteLock().

bool CThreadSystemID::IsNot const CThreadSystemID id  )  const volatile [inline]
 

Definition at line 199 of file ncbimtx.hpp.

References m_ID.

Referenced by CRWLock::TryReadLock(), CRWLock::TryWriteLock(), and SSystemMutex::Unlock().

bool CThreadSystemID::operator!= const CThreadSystemID id  )  const [inline]
 

Non-equality operator for thread ID.

Definition at line 185 of file ncbimtx.hpp.

References m_ID.

bool CThreadSystemID::operator== const CThreadSystemID id  )  const [inline]
 

Equality operator for thread ID.

Definition at line 179 of file ncbimtx.hpp.

References m_ID.

void CThreadSystemID::Set const CThreadSystemID id  )  volatile [inline]
 

volatile versions of above methods

Definition at line 191 of file ncbimtx.hpp.

References m_ID.

Referenced by CDiagContextThreadData::GetThreadData().


Member Data Documentation

TID CThreadSystemID::m_ID
 

Thread ID.

Definition at line 162 of file ncbimtx.hpp.

Referenced by Is(), IsNot(), operator!=(), operator==(), s_GetThreadId(), and Set().


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 15:02:52 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:15 2009 by modify_doxy.py rev. 173732