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
219  { // return true if _Left and _Right do not identify the same thread
220  return (!(_Left == _Right));
221  }
bool operator< ( thread::id  _Left,
thread::id  _Right 
)
inline
224  { // return true if _Left precedes _Right
225  return (_Left._Id < _Right._Id);
226  }
_Thrd_id_t _Id
Definition: thread:175
template<class _Ch , class _Tr >
basic_ostream<_Ch, _Tr>& operator<< ( basic_ostream< _Ch, _Tr > &  _Str,
thread::id  _Id 
)
248  { // insert id into stream
249  return (_Id._To_text(_Str));
250  }
basic_ostream< _Ch, _Tr > & _To_text(basic_ostream< _Ch, _Tr > &_Str)
Definition: thread:158
bool operator<= ( thread::id  _Left,
thread::id  _Right 
)
inline
229  { // return true if _Left precedes or equals _Right
230  return (!(_Right < _Left));
231  }
bool operator== ( thread::id  _Left,
thread::id  _Right 
)
inline
214  { // return true if _Left and _Right identify the same thread
215  return (_Left._Id == _Right._Id);
216  }
_Thrd_id_t _Id
Definition: thread:175
bool operator> ( thread::id  _Left,
thread::id  _Right 
)
inline
234  { // return true if _Left follows _Right
235  return (_Right < _Left);
236  }
bool operator>= ( thread::id  _Left,
thread::id  _Right 
)
inline
239  { // return true if _Left follows or equals _Right
240  return (!(_Left < _Right));
241  }
void swap ( thread _Left,
thread _Right 
)
inline
209  { // swap _Left with _Right
210  _Left.swap(_Right);
211  }
void swap(thread &_Other) _NOEXCEPT
Definition: thread:73