class
std::thread
- Header
<thread>- Scope
std- cppreference
- std::thread
Synopsis
class thread;Member types
| Name | Declaration |
|---|---|
idclass · nested | class id |
name_hintclass template · nested | template class name_hint |
stack_size_hintclass · nested | class stack_size_hint |
native_handle_typetype alias · member type | = ycxx_pal_handle |
Member functions
| Name | Declaration |
|---|---|
threadconstructor · 4 overloads | thread() +3 more |
~threaddestructor | ~thread() |
operator=operator · 2 overloads | thread& operator=(const thread& other) +1 more |
detachmember function | void detach() |
get_idmember function | thread::id get_id() const |
joinmember function | void join() |
joinablemember function | bool joinable() const |
native_handlemember function | native_handle_type native_handle() |
swapmember function | void swap(thread& x) |
Static member functions
| Name | Declaration |
|---|---|
hardware_concurrencystatic member function | unsigned int hardware_concurrency() |