.TH "std::thread" 3cxx "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 "\fBusing\fP \fB_State_ptr\fP = \fBunique_ptr\fP< _State >" .br .ti -1c .RI "\fBtypedef\fP __gthread_t \fBnative_handle_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "template<\fBtypename\fP _Callable , typename\&.\&.\&. _Args, \fBtypename\fP = _Require<__not_same<_Callable>>> \fBthread\fP (_Callable &&__f, \fB_Args\fP &&\&.\&.\&. \fB__args\fP)" .br .ti -1c .RI "\fBthread\fP (\fBconst\fP \fBthread\fP &)=\fBdelete\fP" .br .ti -1c .RI "\fBthread\fP (\fBthread\fP &&__t) \fBnoexcept\fP" .br .ti -1c .RI "\fBvoid\fP \fBdetach\fP ()" .br .ti -1c .RI "\fBthread::id\fP \fBget_id\fP () \fBconst\fP \fBnoexcept\fP" .br .ti -1c .RI "\fBvoid\fP \fBjoin\fP ()" .br .ti -1c .RI "bool \fBjoinable\fP () \fBconst\fP \fBnoexcept\fP" .br .ti -1c .RI "native_handle_type \fBnative_handle\fP ()" .br .ti -1c .RI "\fBthread\fP & \fBoperator=\fP (\fBconst\fP \fBthread\fP &)=\fBdelete\fP" .br .ti -1c .RI "\fBthread\fP & \fBoperator=\fP (\fBthread\fP &&__t) \fBnoexcept\fP" .br .ti -1c .RI "\fBvoid\fP \fBswap\fP (\fBthread\fP &__t) \fBnoexcept\fP" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "template<\fBtypename\fP _Callable , typename\&.\&.\&. _Args> \fBstatic\fP _Invoker< \fB__decayed_tuple\fP< _Callable, _Args\&.\&.\&. > > \fB__make_invoker\fP (_Callable &&\fB__callable\fP, \fB_Args\fP &&\&.\&.\&. \fB__args\fP)" .br .ti -1c .RI "\fBstatic\fP unsigned int \fBhardware_concurrency\fP () \fBnoexcept\fP" .br .in -1c .SH "Detailed Description" .PP thread .PP Definition at line \fB62\fP of file \fBthread\fP\&. .SH "Member Typedef Documentation" .PP .SS "\fBusing\fP \fBstd::thread::_State_ptr\fP = \fBunique_ptr\fP<_State>" .PP Definition at line \fB72\fP of file \fBthread\fP\&. .SS "\fBtypedef\fP __gthread_t std::thread::native_handle_type" .PP Definition at line \fB74\fP of file \fBthread\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template<\fBtypename\fP _Callable , typename\&.\&.\&. _Args, \fBtypename\fP = _Require<__not_same<_Callable>>> std::thread::thread (_Callable && __f, \fB_Args\fP &&\&.\&.\&. __args)\fC [inline]\fP, \fC [explicit]\fP" .PP Definition at line \fB117\fP of file \fBthread\fP\&. .SS "std::thread::~thread ()\fC [inline]\fP" .PP Definition at line \fB136\fP of file \fBthread\fP\&. .SS "std::thread::thread (\fBthread\fP && __t)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB144\fP of file \fBthread\fP\&. .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP _Callable , typename\&.\&.\&. _Args> \fBstatic\fP _Invoker< \fB__decayed_tuple\fP< _Callable, _Args\&.\&.\&. > > std::thread::__make_invoker (_Callable && __callable, \fB_Args\fP &&\&.\&.\&. __args)\fC [inline]\fP, \fC [static]\fP" .PP Definition at line \fB263\fP of file \fBthread\fP\&. .SS "\fBthread::id\fP std::thread::get_id () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB172\fP of file \fBthread\fP\&. .SS "bool std::thread::joinable () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB162\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 \fB178\fP of file \fBthread\fP\&. .SS "\fBthread\fP & std::thread::operator= (\fBthread\fP && __t)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB149\fP of file \fBthread\fP\&. .SS "\fBvoid\fP std::thread::swap (\fBthread\fP & __t)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB158\fP of file \fBthread\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.