task_priority_set. STMicroelectronics OS20
Advertisement
Advertisement
16.2 OS20 function descriptions 16 Alphabetical list of functions
task_priority_set
Set a task’s priority
Synopsis
#include <task.h> int task_priority_set( task_t* Task, int NewPriority );
Arguments task_t* Task int NewPriority
Pointer to the task structure
Desired OS20 priority value for the task
Results task_priority_set() returns the task's previous OS20 priority. If Task is NULL , the return result is the priority of the calling task.
Errors
None
Description task_priority_set() sets the priority of the task specified by Task , or of the currently active task if Task is NULL . If this results in the current task’s priority falling below that of another task which is ready to run, or a ready task now has a priority higher than the current task’s, then tasks may be rescheduled.
On ST20-C2 cores task_priority_set cannot be used on a high priority process.
Callable from
Tasks only
See also
271
ADCS 7473749D
Download
Advertisement