char OS_Task_GetPriority (OST_TASK_POINTER tp)
Returns priority of task.
The macro this_task or the service OS_Task_GetCur() can be used to perform this operation on the current task.
Only in task
tp |
Pointer to task descriptor (OST_TASK_POINTER) |
char |
Task priority |
void Task (void) { char prio; for (;;) { /*...*/ // Increase importance of current task prio = OS_Task_GetPriority (this_task); if (prio) OS_Task_SetPriority(this_task, --prio); /*...*/ } }
OS_GetTaskPriority