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.
This function is in libc.a, but not in libc.so (in order to save space). |
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 |
errno, sched_getparam(), sched_get_priority_max(), sched_get_priority_min(), sched_setparam(), sched_getscheduler(), sched_setscheduler()