Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
The ThisThread namespace provides functions for the current thread of execution. More...
Functions | |
String | name () |
Get thread name. | |
int | online_cpus () |
This function may be called before Rapicorn is initialized. | |
int | affinity () |
This function may be called before Rapicorn is initialized. | |
void | affinity (int cpu) |
This function may be called before Rapicorn is initialized. | |
int | thread_pid () |
Get the current threads's thread ID (TID). For further details, see gettid(). | |
int | process_pid () |
Get the process ID (PID). For further details, see getpid(). | |
void | yield () |
Relinquish the processor to allow execution of other threads. For further details, see std::this_thread::yield(). | |
std::thread::id | get_id () |
Returns the pthread_t id for the current thread. For further details, see std::this_thread::get_id(). | |
template<class Rep , class Period > | |
void | sleep_for (std::chrono::duration< Rep, Period > sleep_duration) |
Sleep for sleep_duration has been reached. For further details, see std::this_thread::sleep_for(). | |
template<class Clock , class Duration > | |
void | sleep_until (const std::chrono::time_point< Clock, Duration > &sleep_time) |
Sleep until sleep_time has been reached. For further details, see std::this_thread::sleep_until(). |
The ThisThread namespace provides functions for the current thread of execution.
This function may be called before Rapicorn is initialized.
Get the current CPU affinity.
void Rapicorn::ThisThread::affinity | ( | int | cpu | ) |
This function may be called before Rapicorn is initialized.
Set the current CPU affinity.
This function may be called before Rapicorn is initialized.
Get the number of available CPUs.