.TH "std::thread" 3cxx "Sun Jan 8 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::thread \- thread .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Classes" .in +1c .ti -1c .RI "class \fBid\fP" .br .RI "thread::id " .in -1c .SS "Public Types" .in +1c .ti -1c .RI "template using \fB_Call_wrapper\fP = _Invoker< \fBtuple\fP< typename \fBdecay\fP< _Tp >::type\&.\&.\&. > >" .br .ti -1c .RI "using \fB_State_ptr\fP = \fBunique_ptr\fP< _State >" .br .ti -1c .RI "using \fBnative_handle_type\fP = __gthread_t" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "template>> \fBthread\fP (_Callable &&__f, _Args &&\&.\&.\&. __args)" .br .ti -1c .RI "\fBthread\fP (const \fBthread\fP &)=delete" .br .ti -1c .RI "\fBthread\fP (\fBthread\fP &&__t) noexcept" .br .ti -1c .RI "void \fBdetach\fP ()" .br .ti -1c .RI "\fBid\fP \fBget_id\fP () const noexcept" .br .ti -1c .RI "void \fBjoin\fP ()" .br .ti -1c .RI "bool \fBjoinable\fP () const noexcept" .br .ti -1c .RI "native_handle_type \fBnative_handle\fP ()" .br .ti -1c .RI "\fBthread\fP & \fBoperator=\fP (const \fBthread\fP &)=delete" .br .ti -1c .RI "\fBthread\fP & \fBoperator=\fP (\fBthread\fP &&__t) noexcept" .br .ti -1c .RI "void \fBswap\fP (\fBthread\fP &__t) noexcept" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static unsigned int \fBhardware_concurrency\fP () noexcept" .br .in -1c .SH "Detailed Description" .PP thread .PP Definition at line \fB61\fP of file \fBthread\fP\&. .SH "Member Typedef Documentation" .PP .SS "template using std::thread::_Call_wrapper = _Invoker<\fBtuple\fP::type\&.\&.\&.> >" .PP Definition at line \fB265\fP of file \fBthread\fP\&. .SS "using \fBstd::thread::_State_ptr\fP = \fBunique_ptr\fP<_State>" .PP Definition at line \fB72\fP of file \fBthread\fP\&. .SS "using std::thread::native_handle_type = __gthread_t" .PP Definition at line \fB74\fP of file \fBthread\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template>> std::thread::thread (_Callable && __f, _Args &&\&.\&.\&. __args)\fC [inline]\fP, \fC [explicit]\fP" .PP Definition at line \fB126\fP of file \fBthread\fP\&. .SS "std::thread::~thread ()\fC [inline]\fP" .PP Definition at line \fB148\fP of file \fBthread\fP\&. .SS "std::thread::thread (\fBthread\fP && __t)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB156\fP of file \fBthread\fP\&. .SH "Member Function Documentation" .PP .SS "\fBid\fP std::thread::get_id () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB184\fP of file \fBthread\fP\&. .SS "bool std::thread::joinable () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB174\fP of file \fBthread\fP\&. .SS "native_handle_type std::thread::native_handle ()\fC [inline]\fP" .PP \fBPrecondition\fP .RS 4 thread is joinable .RE .PP .PP Definition at line \fB190\fP of file \fBthread\fP\&. .SS "\fBthread\fP & std::thread::operator= (\fBthread\fP && __t)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB161\fP of file \fBthread\fP\&. .SS "void std::thread::swap (\fBthread\fP & __t)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB170\fP of file \fBthread\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.