Rapicorn - Experimental UI Toolkit - Source Code  13.07.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Functions
Rapicorn::ThisThread Namespace Reference

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().

Detailed Description

The ThisThread namespace provides functions for the current thread of execution.


Function Documentation

This function may be called before Rapicorn is initialized.

Get the current CPU affinity.

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines