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_ |
Definition at line 39 of file thread_internal.h.
|
private |
Definition at line 146 of file thread_internal.h.
Definition at line 42 of file thread_internal.h.
|
defaultnoexcept |
|
explicit |
| thread::~thread | ( | ) |
Definition at line 51 of file thread-cpp.h.
References delete_system_thread(), joinable(), and os::trace::printf().
|
delete |
|
noexcept |
Definition at line 16 of file thread-cpp.h.
References swap().
| thread::thread | ( | Callable_T && | f, |
| Args_T &&... | args | ||
| ) |
Definition at line 344 of file thread_internal.h.
|
staticprivate |
Definition at line 325 of file thread_internal.h.
|
private |
Definition at line 35 of file thread-cpp.h.
References os::rtos::thread::function_args(), function_object_deleter_, id_, and thread::id::native_thread_.
| void thread::detach | ( | void | ) |
Definition at line 91 of file thread-cpp.h.
References os::rtos::thread::detach(), id_, thread::id::native_thread_, and os::trace::printf().
|
inlinenoexcept |
Definition at line 295 of file thread_internal.h.
|
inlinestaticnoexcept |
Definition at line 307 of file thread_internal.h.
| void thread::join | ( | void | ) |
Definition at line 80 of file thread-cpp.h.
References delete_system_thread(), id_, and os::trace::printf().
|
noexcept |
|
inline |
Definition at line 301 of file thread_internal.h.
Definition at line 22 of file thread-cpp.h.
References os::trace::printf(), and swap().
|
staticprivate |
Definition at line 314 of file thread_internal.h.
|
noexcept |
Definition at line 67 of file thread-cpp.h.
|
private |
Definition at line 147 of file thread_internal.h.
Referenced by delete_system_thread().
|
private |
Definition at line 144 of file thread_internal.h.
Referenced by delete_system_thread(), detach(), join(), and joinable().