libstdc++
Collaboration diagram for Threads:

Namespaces

 std::this_thread
 

Typedefs

using std::thread::_State_ptr = unique_ptr< _State >
 
typedef __gthread_t std::thread::native_handle_type
 

Functions

template<typename... _Args>
 std::thread::_State_impl< _Callable >::_State_impl (_Args &&... __args)
 
 std::thread::id::id (native_handle_type __id)
 
template<typename _Callable , typename... _Args, typename = _Require<__not_same<_Callable>>>
 std::thread::thread (_Callable &&__f, _Args &&... __args)
 
 std::thread::thread (const thread &)=delete
 
 std::thread::thread (thread &&__t) noexcept
 
template<typename _Callable , typename... _Args>
static _Invoker< __decayed_tuple< _Callable, _Args... > > std::thread::__make_invoker (_Callable &&__callable, _Args &&... __args)
 
void std::this_thread::__sleep_for (chrono::seconds, chrono::nanoseconds)
 
template<size_t... _Ind>
__result< _Tuple >::type std::thread::_Invoker< _Tuple >::_M_invoke (_Index_tuple< _Ind... >)
 
void std::thread::_State_impl< _Callable >::_M_run ()
 
virtual void std::thread::_State::_M_run ()=0
 
void std::thread::detach ()
 
id std::thread::get_id () const noexcept
 
thread::id std::this_thread::get_id () noexcept
 
static unsigned int std::thread::hardware_concurrency () noexcept
 
void std::thread::join ()
 
bool std::thread::joinable () const noexcept
 
native_handle_type std::thread::native_handle ()
 
bool std::operator!= (thread::id __x, thread::id __y) noexcept
 
__result< _Tuple >::type std::thread::_Invoker< _Tuple >::operator() ()
 
size_t std::hash< thread::id >::operator() (const thread::id &__id) const noexcept
 
bool std::operator< (thread::id __x, thread::id __y) noexcept
 
template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits > & std::operator<< (basic_ostream< _CharT, _Traits > &__out, thread::id __id)
 
bool std::operator<= (thread::id __x, thread::id __y) noexcept
 
threadstd::thread::operator= (const thread &)=delete
 
threadstd::thread::operator= (thread &&__t) noexcept
 
bool std::operator== (thread::id __x, thread::id __y) noexcept
 
bool std::operator> (thread::id __x, thread::id __y) noexcept
 
bool std::operator>= (thread::id __x, thread::id __y) noexcept
 
template<typename _Rep , typename _Period >
void std::this_thread::sleep_for (const chrono::duration< _Rep, _Period > &__rtime)
 
template<typename _Clock , typename _Duration >
void std::this_thread::sleep_until (const chrono::time_point< _Clock, _Duration > &__atime)
 
void std::thread::swap (thread &__t) noexcept
 
void std::swap (thread &__x, thread &__y) noexcept
 
void std::this_thread::yield () noexcept
 

Variables

_Callable std::thread::_State_impl< _Callable >::_M_func
 
_Tuple std::thread::_Invoker< _Tuple >::_M_t
 

Friends

class std::thread::id::hash< id >
 
bool std::thread::id::operator< (id __x, id __y) noexcept
 
template<class _CharT , class _Traits >
basic_ostream< _CharT, _Traits > & std::thread::id::operator<< (basic_ostream< _CharT, _Traits > &__out, id __id)
 
bool std::thread::id::operator== (id __x, id __y) noexcept
 
class std::thread::id::thread
 

Detailed Description

Classes for thread support.

Function Documentation

◆ get_id()

thread::id std::this_thread::get_id ( )
inlinenoexcept

get_id

Definition at line 365 of file thread.

◆ native_handle()

native_handle_type std::thread::native_handle ( )
inline
Precondition
thread is joinable

Definition at line 196 of file thread.

◆ sleep_for()

template<typename _Rep , typename _Period >
void std::this_thread::sleep_for ( const chrono::duration< _Rep, _Period > &  __rtime)
inline

sleep_for

Definition at line 393 of file thread.

◆ sleep_until()

template<typename _Clock , typename _Duration >
void std::this_thread::sleep_until ( const chrono::time_point< _Clock, _Duration > &  __atime)
inline

sleep_until

Definition at line 415 of file thread.

◆ yield()

void std::this_thread::yield ( )
inlinenoexcept

yield

Definition at line 380 of file thread.