STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Namespaces | Macros | Functions
thread File Reference
#include <exception>
#include <iosfwd>
#include <functional>
#include <chrono>
#include <concrt.h>
#include <thr/xthread>
#include <thr/xtimec.h>

Classes

class  thread
 
class  thread::id
 
struct  hash< thread::id >
 

Namespaces

 this_thread
 

Macros

#define _THREAD_
 
#define __STDCPP_THR__   1 /* nonzero if threads supported */
 

Functions

thread::id this_thread::get_id () _NOEXCEPT
 
void this_thread::yield () _NOEXCEPT
 
void this_thread::sleep_until (const stdext::threads::xtime *_Abs_time)
 
template<class _Clock , class _Duration >
void this_thread::sleep_until (const chrono::time_point< _Clock, _Duration > &_Abs_time)
 
template<class _Rep , class _Period >
void this_thread::sleep_for (const chrono::duration< _Rep, _Period > &_Rel_time)
 
void swap (thread &_Left, thread &_Right) _NOEXCEPT
 
bool operator== (thread::id _Left, thread::id _Right) _NOEXCEPT
 
bool operator!= (thread::id _Left, thread::id _Right) _NOEXCEPT
 
bool operator< (thread::id _Left, thread::id _Right) _NOEXCEPT
 
bool operator<= (thread::id _Left, thread::id _Right) _NOEXCEPT
 
bool operator> (thread::id _Left, thread::id _Right) _NOEXCEPT
 
bool operator>= (thread::id _Left, thread::id _Right) _NOEXCEPT
 
template<class _Ch , class _Tr >
basic_ostream< _Ch, _Tr > & operator<< (basic_ostream< _Ch, _Tr > &_Str, thread::id _Id)
 

Macro Definition Documentation

#define __STDCPP_THR__   1 /* nonzero if threads supported */
#define _THREAD_

Function Documentation

bool operator!= ( thread::id  _Left,
thread::id  _Right 
)
inline
240  { // return true if _Left and _Right do not identify the same thread
241  return (!(_Left == _Right));
242  }
bool operator< ( thread::id  _Left,
thread::id  _Right 
)
inline
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)
template<class _Ch , class _Tr >
basic_ostream<_Ch, _Tr>& operator<< ( basic_ostream< _Ch, _Tr > &  _Str,
thread::id  _Id 
)
267  { // insert id into stream
268  return (_Id._To_text(_Str));
269  }
basic_ostream< _Ch, _Tr > & _To_text(basic_ostream< _Ch, _Tr > &_Str)
Definition: thread:176
bool operator<= ( thread::id  _Left,
thread::id  _Right 
)
inline
250  { // return true if _Left precedes or equals _Right
251  return (!(_Right < _Left));
252  }
bool operator== ( thread::id  _Left,
thread::id  _Right 
)
inline
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)
bool operator> ( thread::id  _Left,
thread::id  _Right 
)
inline
254  { // return true if _Left follows _Right
255  return (_Right < _Left);
256  }
bool operator>= ( thread::id  _Left,
thread::id  _Right 
)
inline
258  { // return true if _Left follows or equals _Right
259  return (!(_Left < _Right));
260  }
void swap ( thread _Left,
thread _Right 
)
inline
230  { // swap _Left with _Right
231  _Left.swap(_Right);
232  }
void swap(thread &_Other) _NOEXCEPT
Definition: thread:73