|
WPILibC++
2020.3.2
|
Functions | |
| int32_t | HAL_GetThreadPriority (NativeThreadHandle handle, HAL_Bool *isRealTime, int32_t *status) |
| Gets the thread priority for the specified thread. More... | |
| int32_t | HAL_GetCurrentThreadPriority (HAL_Bool *isRealTime, int32_t *status) |
| Gets the thread priority for the current thread. More... | |
| HAL_Bool | HAL_SetThreadPriority (NativeThreadHandle handle, HAL_Bool realTime, int32_t priority, int32_t *status) |
| Sets the thread priority for the specified thread. More... | |
| HAL_Bool | HAL_SetCurrentThreadPriority (HAL_Bool realTime, int32_t priority, int32_t *status) |
| Sets the thread priority for the current thread. More... | |
Variables | |
| const typedef void * | NativeThreadHandle |
| int32_t HAL_GetCurrentThreadPriority | ( | HAL_Bool * | isRealTime, |
| int32_t * | status | ||
| ) |
Gets the thread priority for the current thread.
| handle | Native handle pointer to the thread to get the priority for |
| isRealTime | Set to true if thread is realtime, otherwise false |
| status | Error status variable. 0 on success |
| int32_t HAL_GetThreadPriority | ( | NativeThreadHandle | handle, |
| HAL_Bool * | isRealTime, | ||
| int32_t * | status | ||
| ) |
Gets the thread priority for the specified thread.
| handle | Native handle pointer to the thread to get the priority for |
| isRealTime | Set to true if thread is realtime, otherwise false |
| status | Error status variable. 0 on success |
| HAL_Bool HAL_SetCurrentThreadPriority | ( | HAL_Bool | realTime, |
| int32_t | priority, | ||
| int32_t * | status | ||
| ) |
Sets the thread priority for the current thread.
| thread | Reference to the thread to set the priority of |
| realTime | Set to true to set a realtime priority, false for standard priority |
| priority | Priority to set the thread to. Scaled 1-99, with 1 being highest |
| status | Error status variable. 0 on success |
| HAL_Bool HAL_SetThreadPriority | ( | NativeThreadHandle | handle, |
| HAL_Bool | realTime, | ||
| int32_t | priority, | ||
| int32_t * | status | ||
| ) |
Sets the thread priority for the specified thread.
| thread | Reference to the thread to set the priority of |
| realTime | Set to true to set a realtime priority, false for standard priority |
| priority | Priority to set the thread to. Scaled 1-99, with 1 being highest |
| status | Error status variable. 0 on success |