Updated: April 19, 2023 |
Calculate the allowable priority for the scheduling policy
#include <sched.h> int sched_get_priority_adjust( int prio, int policy, int adjust );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The sched_get_priority_adjust() function calculates the requested priority change relative to another thread and returns the allowable value.
This function makes it easier for you to set relative priorities in order to ensure proper precedence.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |