#include <dispenso/platform.h>
Go to the source code of this file.
Enumerations | |
enum class | dispenso::ThreadPriority { kLow , kNormal , kHigh , kRealtime } |
Functions | |
ThreadPriority | dispenso::getCurrentThreadPriority () |
bool | dispenso::setCurrentThreadPriority (ThreadPriority prio) |
Utilities for getting and setting thread priority. This is an attempt to unify concepts for thread priority usefully across multiple platforms. For finer control, use platform specific functionality.
Definition in file priority.h.
|
strong |
A thread priority setting. Enum values in increasing order of priority.
Definition at line 29 of file priority.h.
DISPENSO_DLL_ACCESS ThreadPriority dispenso::getCurrentThreadPriority | ( | ) |
Access the current thread priority as set by setCurrentThreadPriority.
Definition at line 35 of file priority.cpp.
DISPENSO_DLL_ACCESS bool dispenso::setCurrentThreadPriority | ( | ThreadPriority | prio | ) |
Set the current thread's priority
prio | The priority to set to |
Definition at line 194 of file priority.cpp.