STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
thread::id Class Reference

Public Member Functions

 id () _NOEXCEPT
 
template<class _Ch , class _Tr >
basic_ostream< _Ch, _Tr > & _To_text (basic_ostream< _Ch, _Tr > &_Str)
 
size_t hash () const
 

Private Member Functions

 id (const thread &_Thrd)
 
 id (_Thrd_t _Thrd)
 

Private Attributes

_Thrd_t _Thr
 

Friends

thread::id thread::get_id () const _NOEXCEPT
 
thread::id this_thread::get_id () _NOEXCEPT
 
bool operator== (thread::id _Left, thread::id _Right) _NOEXCEPT
 
bool operator< (thread::id _Left, thread::id _Right) _NOEXCEPT
 

Constructor & Destructor Documentation

thread::id::id ( )
inline
170  { // id for no thread
172  }
_Thrd_t _Thr
Definition: thread:198
#define _Thr_set_null(thr)
Definition: xthrcommon.h:41
thread::id::id ( const thread _Thrd)
inlineprivate
189  : _Thr(_Thrd._Thr)
190  { // construct from thread object
191  }
_Thrd_t _Thr
Definition: thread:198
_Thrd_t _Thr
Definition: thread:115
thread::id::id ( _Thrd_t  _Thrd)
inlineprivate
194  : _Thr(_Thrd)
195  { // construct from thread identifier
196  }
_Thrd_t _Thr
Definition: thread:198

Member Function Documentation

template<class _Ch , class _Tr >
basic_ostream<_Ch, _Tr>& thread::id::_To_text ( basic_ostream< _Ch, _Tr > &  _Str)
inline
178  { // insert representation into stream
179  return (_Str << _Thr_val(_Thr));
180  }
_Thrd_t _Thr
Definition: thread:198
#define _Thr_val(thr)
Definition: xthrcommon.h:40
size_t thread::id::hash ( ) const
inline
183  { // hash bits to size_t value by pseudorandomizing transform
184  return (_STD hash<size_t>()((size_t)_Thr_val(_Thr)));
185  }
_Thrd_t _Thr
Definition: thread:198
#define _Thr_val(thr)
Definition: xthrcommon.h:40
Definition: xstddef:323

Friends And Related Function Documentation

bool operator< ( thread::id  _Left,
thread::id  _Right 
)
friend
245  { // return true if _Left precedes _Right
246  return (_Thrd_lt(_Left._Thr, _Right._Thr));
247  }
_Thrd_t _Thr
Definition: thread:198
_CRTIMP2_PURE int __cdecl _Thrd_lt(_Thrd_t, _Thrd_t)
bool operator== ( thread::id  _Left,
thread::id  _Right 
)
friend
235  { // return true if _Left and _Right identify the same thread
236  return (_Thrd_equal(_Left._Thr, _Right._Thr));
237  }
_Thrd_t _Thr
Definition: thread:198
_CRTIMP2_PURE int __cdecl _Thrd_equal(_Thrd_t, _Thrd_t)
thread::id thread::get_id ( ) const
friend

Member Data Documentation

_Thrd_t thread::id::_Thr
private

The documentation for this class was generated from the following file: