|
| | ThreadWrapperReg ()=default |
| | ThreadWrapperReg (ThreadWrapperReg &&) noexcept=default |
| auto | operator= (ThreadWrapperReg &&) noexcept -> ThreadWrapperReg &=default |
| | ThreadWrapperReg (ThreadWrapperReg const &)=delete |
| auto | operator= (ThreadWrapperReg const &) -> ThreadWrapperReg &=delete |
| template<typename F, typename... Args> |
| | ThreadWrapperReg (std::string name, std::string componentTag, F &&f, Args &&... args) |
| | ThreadWrapper ()=default |
| | ThreadWrapper (std::thread &&t) noexcept |
| template<typename F, typename... Args> |
| | ThreadWrapper (F &&f, Args &&... args) |
| | ThreadWrapper (ThreadWrapper const &)=delete |
| auto | operator= (ThreadWrapper const &) -> ThreadWrapper &=delete |
| | ThreadWrapper (ThreadWrapper &&other) noexcept |
| auto | operator= (ThreadWrapper &&other) noexcept -> ThreadWrapper & |
| | ~ThreadWrapper () override |
| auto | release () noexcept -> std::thread |
| | operator std::thread () &&noexcept |
| | BaseThreadWrapper ()=default |
| virtual | ~BaseThreadWrapper ()=default |
| 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 > |
ThreadWrapper with automatic registration in the global ThreadRegistry.
Non-copyable, movable. On thread start the spawned thread auto-registers itself in the global registry() (via an AutoRegisterCurrentThread RAII guard) and auto-unregisters when the thread function returns. The name and componentTag arguments are forwarded to the registry entry.
Definition at line 28 of file registered_threads.hpp.