libstdc++
std::thread Class Reference

#include <std_thread.h>

Classes

class  id
 

Public Types

template<typename... _Tp>
using _Call_wrapper = _Invoker< tuple< typename decay< _Tp >::type... > >
 
using _State_ptr = unique_ptr< _State >
 
using native_handle_type = __gthread_t
 

Public Member Functions

template<typename _Callable , typename... _Args, typename = _Require<__not_same<_Callable>>>
 thread (_Callable &&__f, _Args &&... __args)
 
 thread (const thread &)=delete
 
 thread (thread &&__t) noexcept
 
void detach ()
 
id get_id () const noexcept
 
void join ()
 
bool joinable () const noexcept
 
native_handle_type native_handle ()
 
threadoperator= (const thread &)=delete
 
threadoperator= (thread &&__t) noexcept
 
void swap (thread &__t) noexcept
 

Static Public Member Functions

static unsigned int hardware_concurrency () noexcept
 

Detailed Description

thread

Definition at line 62 of file std_thread.h.

Member Typedef Documentation

◆ _Call_wrapper

template<typename... _Tp>
using std::thread::_Call_wrapper = _Invoker<tuple<typename decay<_Tp>::type...> >

Definition at line 272 of file std_thread.h.

◆ _State_ptr

Definition at line 73 of file std_thread.h.

◆ native_handle_type

using std::thread::native_handle_type = __gthread_t

Definition at line 75 of file std_thread.h.

Constructor & Destructor Documentation

◆ thread() [1/2]

template<typename _Callable , typename... _Args, typename = _Require<__not_same<_Callable>>>
std::thread::thread ( _Callable &&  __f,
_Args &&...  __args 
)
inlineexplicit

Definition at line 127 of file std_thread.h.

◆ ~thread()

std::thread::~thread ( )
inline

Definition at line 149 of file std_thread.h.

◆ thread() [2/2]

std::thread::thread ( thread &&  __t)
inlinenoexcept

Definition at line 157 of file std_thread.h.

Member Function Documentation

◆ get_id()

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

Definition at line 185 of file std_thread.h.

◆ joinable()

bool std::thread::joinable ( ) const
inlinenoexcept

Definition at line 175 of file std_thread.h.

◆ native_handle()

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

Definition at line 191 of file std_thread.h.

◆ operator=()

thread & std::thread::operator= ( thread &&  __t)
inlinenoexcept

Definition at line 162 of file std_thread.h.

◆ swap()

void std::thread::swap ( thread __t)
inlinenoexcept

Definition at line 171 of file std_thread.h.


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