IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


int RTX_Task_Priority ( RTX_ID  taskId,
int  priority 
)

This API changes and/or reads out a task's priority.

To make a read-only call with no priority change, set the priority argument to PRIORITY_READ_ONLY.

The existing task priority reported in the return value does not reflect any momentary priority boost which this task may be receiving due a priority inheritance semaphore or file system semaphore. The task's native priority is reported.

Parameters:
taskId Task handle specifying task whose priority is to be changed. This parameter may be set to zero to indicate the current task.
priority Task priority, ranging from 2 (highest) up to 127 (lowest). Or set to PRIORITY_READ_ONLY if no change is desired.
Returns:
Positive value: Existing task priority before change
Negative value: An RTX error code.
See also:
PRIORITY_APPLICATION
Since:
SC2x3 V1.00 - CLIB V1.00





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:37 2017 by Doxygen 1.6.1