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 40 of file thread_internal.h.
|
private |
Definition at line 150 of file thread_internal.h.
Definition at line 44 of file thread_internal.h.
|
defaultnoexcept |
|
explicit |
thread::~thread | ( | ) |
Definition at line 52 of file thread-cpp.h.
|
delete |
|
noexcept |
Definition at line 17 of file thread-cpp.h.
thread::thread | ( | Callable_T && | f, |
Args_T &&... | args | ||
) |
Definition at line 351 of file thread_internal.h.
|
staticprivate |
Definition at line 332 of file thread_internal.h.
|
private |
Definition at line 36 of file thread-cpp.h.
void thread::detach | ( | void | ) |
Definition at line 92 of file thread-cpp.h.
|
inlinenoexcept |
Definition at line 302 of file thread_internal.h.
|
inlinestaticnoexcept |
Definition at line 314 of file thread_internal.h.
void thread::join | ( | void | ) |
Definition at line 81 of file thread-cpp.h.
|
noexcept |
Definition at line 75 of file thread-cpp.h.
|
inline |
Definition at line 308 of file thread_internal.h.
Definition at line 23 of file thread-cpp.h.
|
staticprivate |
Definition at line 321 of file thread_internal.h.
|
noexcept |
Definition at line 68 of file thread-cpp.h.
|
private |
Definition at line 151 of file thread_internal.h.
|
private |
Definition at line 148 of file thread_internal.h.