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.
|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. |
- Positive value: Existing task priority before change
Negative value: An RTX error code.
- See also:
- SC2x3 V1.00 - CLIB V1.00