|
template<typename F, typename... Args> |
| PThreadWrapperReg (std::string name, std::string componentTag, F &&f, Args &&... args) |
template<typename F, typename... Args> |
| PThreadWrapper (F &&func, Args &&... args) |
| PThreadWrapper (PThreadWrapper const &)=delete |
auto | operator= (PThreadWrapper const &) -> PThreadWrapper &=delete |
| PThreadWrapper (PThreadWrapper &&other) noexcept |
auto | operator= (PThreadWrapper &&other) noexcept -> PThreadWrapper & |
void | join () |
void | detach () |
auto | joinable () const -> bool |
auto | get_id () const -> id |
auto | native_handle () const -> native_handle_type |
auto | set_name (std::string const &name) const -> expected< void, std::error_code > |
auto | get_name () const -> std::optional< std::string > |
auto | set_priority (ThreadPriority priority) const -> expected< void, std::error_code > |
auto | set_scheduling_policy (SchedulingPolicy policy, ThreadPriority priority) const -> expected< void, std::error_code > |
auto | set_affinity (ThreadAffinity const &affinity) const -> expected< void, std::error_code > |
auto | get_affinity () const -> std::optional< ThreadAffinity > |
auto | cancel () const -> expected< void, std::error_code > |
|
using | native_handle_type = pthread_t |
using | id = pthread_t |
static auto | set_cancel_state (bool enabled) -> expected< void, std::error_code > |
static auto | set_cancel_type (bool asynchronous) -> expected< void, std::error_code > |
template<typename F, typename... Args> |
static auto | create_with_config (std::string const &name, SchedulingPolicy policy, ThreadPriority priority, F &&f, Args &&... args) -> PThreadWrapper |
template<typename F, typename... Args> |
static auto | create_with_attributes (pthread_attr_t const &attr, F &&func, Args &&... args) -> PThreadWrapper |
Definition at line 56 of file registered_threads.hpp.
◆ PThreadWrapperReg()
template<typename F, typename... Args>
threadschedule::PThreadWrapperReg::PThreadWrapperReg |
( |
std::string | name, |
|
|
std::string | componentTag, |
|
|
F && | f, |
|
|
Args &&... | args ) |
|
inlineexplicit |
The documentation for this class was generated from the following file: