Common thread functions. More...
#include <thread.hpp>
Static Public Member Functions | |
| static void | setMain () noexcept |
| Sets current thread as main. | |
| static bool | isCurrentMain () noexcept |
| Returns true if current thread is main. | |
| static void | getName (char *name, size_t size) noexcept |
| Returns current thread name. | |
| static void | setName (const string &name) noexcept |
| Sets current thread name. | |
| static void | setForegroundPriority () noexcept |
| Sets current thread priority to foreground. | |
| static void | setBackgroundPriority () noexcept |
| Sets current thread priority to background. | |
Common thread functions.
See the thread.h
|
inlinestaticnoexcept |
Sets current thread as main.
See the setMainThread().
|
inlinestaticnoexcept |
Returns true if current thread is main.
See the isCurrentThreadMain().
|
inlinestaticnoexcept |
Returns current thread name.
See the getThreadName().
| [out] | name | pointer to the thread name string |
| size | maximal name string capacity (including '\0') |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
Sets current thread priority to foreground.
See the setThreadForegroundPriority().
|
inlinestaticnoexcept |
Sets current thread priority to background.
See the setThreadBackgroundPriority().