ThreadSchedule 1.0.0
Modern C++ thread management library
|
Base thread wrapper with common functionality. More...
#include <thread_wrapper.hpp>
Public Types | |
using | native_handle_type = typename ThreadType::native_handle_type |
using | id = typename ThreadType::id |
Public Member Functions | |
BaseThreadWrapper (ThreadType &t) | |
void | join () |
void | detach () |
auto | joinable () const noexcept -> bool |
auto | get_id () const noexcept -> id |
auto | native_handle () noexcept -> native_handle_type |
auto | set_name (std::string const &name) -> expected< void, std::error_code > |
auto | get_name () const -> std::optional< std::string > |
auto | set_priority (ThreadPriority priority) -> expected< void, std::error_code > |
auto | set_scheduling_policy (SchedulingPolicy policy, ThreadPriority priority) -> expected< void, std::error_code > |
auto | set_affinity (ThreadAffinity const &affinity) -> expected< void, std::error_code > |
auto | get_affinity () const -> std::optional< ThreadAffinity > |
Static Public Member Functions | |
static auto | set_nice_value (int nice_value) -> bool |
static auto | get_nice_value () -> std::optional< int > |
Base thread wrapper with common functionality.
Definition at line 82 of file thread_wrapper.hpp.
using threadschedule::BaseThreadWrapper< ThreadType, OwnershipTag >::id = typename ThreadType::id |
Definition at line 86 of file thread_wrapper.hpp.
using threadschedule::BaseThreadWrapper< ThreadType, OwnershipTag >::native_handle_type = typename ThreadType::native_handle_type |
Definition at line 85 of file thread_wrapper.hpp.
|
inlineexplicit |
Definition at line 89 of file thread_wrapper.hpp.
|
inline |
Definition at line 103 of file thread_wrapper.hpp.
|
inlinenodiscard |
Definition at line 315 of file thread_wrapper.hpp.
|
inlinenodiscardnoexcept |
Definition at line 115 of file thread_wrapper.hpp.
|
inlinenodiscard |
Definition at line 158 of file thread_wrapper.hpp.
|
inlinestatic |
Definition at line 388 of file thread_wrapper.hpp.
|
inline |
Definition at line 95 of file thread_wrapper.hpp.
|
inlinenodiscardnoexcept |
Definition at line 111 of file thread_wrapper.hpp.
|
inlinenodiscardnoexcept |
Definition at line 119 of file thread_wrapper.hpp.
|
inlinenodiscard |
Definition at line 281 of file thread_wrapper.hpp.
|
inlinenodiscard |
Definition at line 125 of file thread_wrapper.hpp.
|
inlinestatic |
Definition at line 356 of file thread_wrapper.hpp.
|
inlinenodiscard |
Definition at line 199 of file thread_wrapper.hpp.
|
inlinenodiscard |
Definition at line 258 of file thread_wrapper.hpp.