BOOL osGetTaskPriority( HANDLE Handle, UINT8 *Priority );
A handle to the task whose priority is to be retrieved.
A pointer to a variable that will receive the task's current priority level.
Returns TRUE on success or FALSE on failure. Use the osGetLastError function to obtain extended error information.
This function retrieves the current priority of the specified task.
This function is available only when the OS_TASK_PRIORITY_FUNC constant is set to 1. If this functionality is not required, it can be disabled to minimize the size of the output code.
| Version: | 1.0 |
|---|---|
| Header file: | OS_Task.h (include OS_API.h) |
| See also: | BOOL, FALSE, HANDLE, OS_TASK_PRIORITY_FUNC, osGetLastError, tasks, TRUE using priority and time quanta |