PxTaskGetPrio()
Get task priority.
- APPLIES TO
-
1.0.0
- SYNOPSIS
-
PxPrio_t PxTaskGetPrio (PxTask_t TaskId); - ARGUMENTS
|
- RETURN VALUES
-
-
Priority of the given task
-
- ERROR CODES
-
PXERR_TASK_ILLTASKTaskIdis not a valid task objectPXERR_GLOBAL_ILLEGAL_COREThe requested task is not on the same core
- DESCRIPTION
-
PxTaskGetPrioreturns the current priority of the taskTaskId.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
The parameter
taskmust be a valid task object id. This id may be-
the calling task’s own id read by calling
PxGetId()(V) -
the return value of a
PxTaskCreate()call (V) -
the result of a
nameserverquery (V) -
part of a message sent by another task (V)
-
-
Additionally the task id may be checked with
PxTaskCheck()(F).
-
- After call
-
-
This function returns a plausible priority value (typically between 0 and 31) (C)
-
- Best Practice
-
-
No restrictions.
-
- SEE ALSO
- USAGE
-
#include "pxdef.h" PxPrio_t Prio = PxTaskGetPrio(TaskId);