| Description | The os_tsk_prio_self macro changes the priority of the currently running task to new_prio. The os_tsk_prio_self function is in the RL-RTX library. The prototype is defined in rtl.h. Note - The value of new_prio can be anything from 1 to 254.
- The new priority stays in effect until you change it.
- Priority 0 is reserved for the idle task. If priority 0 is specified to the function, it is automatically replaced with the value of 1 by the RTX kernel. Priority 255 is also reserved.
- A higher value for new_prio indicates a higher priority.
|