nlib
|
Implements functions related to current thread behavior. More...
Functions | |
errno_t | YieldThread () noexcept |
Yields control to a different thread. More... | |
errno_t | Sleep (const TimeSpan &span) noexcept |
Makes the thread sleep for a specified period of time. More... | |
errno_t | SleepMilliSeconds (unsigned int millisec) noexcept |
Makes the thread sleep for a specified period of time. More... | |
nlib_thread_id | GetId () noexcept |
Gets the current thread ID. More... | |
errno_t | GetCpu (int *cpuid) noexcept |
Gets the CPU on which the called thread is executing. More... | |
errno_t | SetName (const char *literal_string) noexcept |
Attaches a name to the thread. More... | |
errno_t | GetPriority (int32_t *priority) noexcept |
Calls nlib_thread_getpriority and gets the thread's execution priority. | |
errno_t | ChangePriority (int32_t priority) noexcept |
Calls nlib_thread_setpriority and sets the thread's execution priority. | |
Implements functions related to current thread behavior.
|
inlinenoexcept |
|
inlinenoexcept |
Gets the current thread ID.
|
inlinenoexcept |
|
inlinenoexcept |
Makes the thread sleep for a specified period of time.
[in] | span | Sleep duration. |
0
.
|
inlinenoexcept |
Makes the thread sleep for a specified period of time.
[in] | millisec | Sleep duration, in milliseconds. |
0
.
|
inlinenoexcept |
Yields control to a different thread.
0
.nlib_yield
. © 2012-2016 Nintendo Co., Ltd. All rights reserved.