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 <memory>
#include <tuple>
#include <thr/xthread>
#include <thr/xtimec.h>

Classes

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

Namespaces

 this_thread
 

Macros

#define _THREAD_
 

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 _Rep , class _Period >
void this_thread::sleep_for (const chrono::duration< _Rep, _Period > &_Rel_time)
 
template<class _Clock , class _Duration >
void this_thread::sleep_until (const chrono::time_point< _Clock, _Duration > &_Abs_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 _THREAD_

Function Documentation

bool operator!= ( thread::id  _Left,
thread::id  _Right 
)
inline
220  { // return true if _Left and _Right do not identify the same thread
221  return (!(_Left == _Right));
222  }
bool operator< ( thread::id  _Left,
thread::id  _Right 
)
inline
225  { // return true if _Left precedes _Right
226  return (_Left._Id < _Right._Id);
227  }
_Thrd_id_t _Id
Definition: thread:176
template<class _Ch , class _Tr >
basic_ostream<_Ch, _Tr>& operator<< ( basic_ostream< _Ch, _Tr > &  _Str,
thread::id  _Id 
)
249  { // insert id into stream
250  return (_Id._To_text(_Str));
251  }
basic_ostream< _Ch, _Tr > & _To_text(basic_ostream< _Ch, _Tr > &_Str)
Definition: thread:159
bool operator<= ( thread::id  _Left,
thread::id  _Right 
)
inline
230  { // return true if _Left precedes or equals _Right
231  return (!(_Right < _Left));
232  }
bool operator== ( thread::id  _Left,
thread::id  _Right 
)
inline
215  { // return true if _Left and _Right identify the same thread
216  return (_Left._Id == _Right._Id);
217  }
_Thrd_id_t _Id
Definition: thread:176
bool operator> ( thread::id  _Left,
thread::id  _Right 
)
inline
235  { // return true if _Left follows _Right
236  return (_Right < _Left);
237  }
bool operator>= ( thread::id  _Left,
thread::id  _Right 
)
inline
240  { // return true if _Left follows or equals _Right
241  return (!(_Left < _Right));
242  }
void swap ( thread _Left,
thread _Right 
)
inline
210  { // swap _Left with _Right
211  _Left.swap(_Right);
212  }
void swap(thread &_Other) _NOEXCEPT
Definition: thread:74