Standard thread. More...
#include <thread_internal.h>
Classes | |
class | id |
Thread unique id. More... | |
Public Types | |
using | native_handle_type = os::rtos::thread * |
Public Member Functions | |
thread () noexcept=default | |
template<typename Callable_T , typename ... Args_T> | |
thread (Callable_T &&f, Args_T &&... args) | |
thread (const thread &)=delete | |
template<typename F , typename ... Args> | |
thread (F &&f, Args &&... args) | |
thread (thread &&t) noexcept | |
~thread () | |
void | detach (void) |
id | get_id (void) const noexcept |
void | join (void) |
bool | joinable (void) const noexcept |
native_handle_type | native_handle () |
thread & | operator= (const thread &)=delete |
thread & | operator= (thread &&t) noexcept |
void | swap (thread &t) noexcept |
Static Public Member Functions | |
static unsigned | hardware_concurrency (void) noexcept |
Private Types | |
using | function_object_deleter_t = void(*)(void *) |
Private Member Functions | |
void | delete_system_thread (void) |
Static Private Member Functions | |
template<typename F_T > | |
static void | delete_function_object (const void *func_obj) |
template<typename F_T > | |
static void | run_function_object (const void *func_object) |
Private Attributes | |
function_object_deleter_t | function_object_deleter_ = nullptr |
id | id_ |
Standard thread.
Definition at line 56 of file thread_internal.h.
|
private |
Definition at line 166 of file thread_internal.h.
Definition at line 60 of file thread_internal.h.
|
defaultnoexcept |
|
explicit |
thread::~thread | ( | ) |
Definition at line 67 of file thread-cpp.h.
|
delete |
|
noexcept |
Definition at line 32 of file thread-cpp.h.
thread::thread | ( | Callable_T && | f, |
Args_T &&... | args | ||
) |
Definition at line 366 of file thread_internal.h.
|
staticprivate |
Definition at line 350 of file thread_internal.h.
|
private |
Definition at line 51 of file thread-cpp.h.
void thread::detach | ( | void | ) |
Definition at line 107 of file thread-cpp.h.
|
inlinenoexcept |
Definition at line 320 of file thread_internal.h.
|
inlinestaticnoexcept |
Definition at line 332 of file thread_internal.h.
void thread::join | ( | void | ) |
Definition at line 96 of file thread-cpp.h.
|
noexcept |
Definition at line 90 of file thread-cpp.h.
|
inline |
Definition at line 326 of file thread_internal.h.
Definition at line 38 of file thread-cpp.h.
|
staticprivate |
Definition at line 339 of file thread_internal.h.
|
noexcept |
Definition at line 83 of file thread-cpp.h.
|
private |
Definition at line 167 of file thread_internal.h.
|
private |
Definition at line 164 of file thread_internal.h.