libycxx

class

std::thread

Header
<thread>
Scope
std
cppreference
std::thread

Synopsis

class thread;

Member types

NameDeclaration
idclass · nestedclass id
name_hintclass template · nestedtemplate class name_hint
stack_size_hintclass · nestedclass stack_size_hint
native_handle_typetype alias · member type= ycxx_pal_handle

Member functions

NameDeclaration
threadconstructor · 4 overloadsthread() +3 more
~threaddestructor~thread()
operator=operator · 2 overloadsthread& operator=(const thread& other) +1 more
detachmember functionvoid detach()
get_idmember functionthread::id get_id() const
joinmember functionvoid join()
joinablemember functionbool joinable() const
native_handlemember functionnative_handle_type native_handle()
swapmember functionvoid swap(thread& x)

Static member functions

NameDeclaration
hardware_concurrencystatic member functionunsigned int hardware_concurrency()