|
ThreadSchedule 3.0.0
Modern C++ thread management library
|
Portable configuration operations for the calling thread. More...
Functions | |
| auto | configure (thread_config const &config) -> result< void > |
| Apply full portable configuration to the calling thread. | |
| auto | set_priority (priority_level level) -> result< void > |
| Set portable priority preset for the calling thread. | |
| auto | set_nice (nice_value value) -> result< void > |
| Set explicit nice value for the calling thread. | |
| auto | get_priority () -> result< priority_level > |
| Query current portable priority preset of the calling thread. | |
| auto | get_nice () -> result< nice_value > |
| Query current nice value of the calling thread. | |
| auto | set_name (std::string const &name) -> result< void > |
| Set the calling thread name. | |
| auto | get_name () -> result< std::string > |
| Query the calling thread name. | |
| auto | set_affinity (thread_affinity const &affinity) -> result< void > |
| Set CPU affinity for the calling thread. | |
| auto | get_affinity () -> result< thread_affinity > |
| Query CPU affinity of the calling thread. | |
Portable configuration operations for the calling thread.
|
inline |
Apply full portable configuration to the calling thread.
Definition at line 18 of file this_thread.hpp.
|
inline |
Query CPU affinity of the calling thread.
Definition at line 80 of file this_thread.hpp.
References get_affinity().
Referenced by get_affinity().
|
inline |
Query the calling thread name.
Definition at line 65 of file this_thread.hpp.
References threadschedule::detail::thread_info::get_name().
|
inline |
Query current nice value of the calling thread.
Definition at line 50 of file this_thread.hpp.
References threadschedule::detail::current_native_thread_id(), and threadschedule::detail::read_effective_nice().
|
inline |
Query current portable priority preset of the calling thread.
Definition at line 42 of file this_thread.hpp.
References threadschedule::detail::current_native_thread_id(), and threadschedule::detail::read_effective_nice().
|
inline |
Set CPU affinity for the calling thread.
Definition at line 72 of file this_thread.hpp.
|
inline |
Set the calling thread name.
Definition at line 58 of file this_thread.hpp.
References threadschedule::detail::thread_info::set_name().
|
inline |
Set explicit nice value for the calling thread.
Definition at line 34 of file this_thread.hpp.
|
inline |
Set portable priority preset for the calling thread.
Definition at line 26 of file this_thread.hpp.