ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
this_thread.hpp File Reference
#include "detail/thread/control.hpp"
#include "detail/thread_backend.hpp"
#include "thread_config.hpp"
#include <string>
Include dependency graph for this_thread.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  threadschedule
 
namespace  threadschedule::this_thread
 Portable configuration operations for the calling thread.
 

Functions

auto threadschedule::this_thread::configure (thread_config const &config) -> result< void >
 Apply full portable configuration to the calling thread.
 
auto threadschedule::this_thread::set_priority (priority_level level) -> result< void >
 Set portable priority preset for the calling thread.
 
auto threadschedule::this_thread::set_nice (nice_value value) -> result< void >
 Set explicit nice value for the calling thread.
 
auto threadschedule::this_thread::get_priority () -> result< priority_level >
 Query current portable priority preset of the calling thread.
 
auto threadschedule::this_thread::get_nice () -> result< nice_value >
 Query current nice value of the calling thread.
 
auto threadschedule::this_thread::set_name (std::string const &name) -> result< void >
 Set the calling thread name.
 
auto threadschedule::this_thread::get_name () -> result< std::string >
 Query the calling thread name.
 
auto threadschedule::this_thread::set_affinity (thread_affinity const &affinity) -> result< void >
 Set CPU affinity for the calling thread.
 
auto threadschedule::this_thread::get_affinity () -> result< thread_affinity >
 Query CPU affinity of the calling thread.