osGetTaskPriority function
Declaration:
BOOL osGetTaskPriority(
  HANDLE Handle,
  UINT8 *Priority
);
Parameters:
Handle

A task handle.

Priority

A pointer to variable that receive a task priority.

Return value:

TRUE on success or FALSE on failure. Use osGetLastError function to obtain extended error information.

Description:

Function returns a priority of the specified task.

Function is available only, when the value of OS_TASK_PRIORITY_FUNC constant is set to 1. When function is not used, it may be disabled to reduce 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, TRUEusing priority and time quanta
SpaceShadow documentation