pthread_setprio, pthread_getprio - get and set thread priorities
#include <pthread.h>
Callable from ISR.
The pthread_setprio() function sets the priority from the lowest value, 0 to PTHREAD_PRIO_MAX, the highest value. The pthread_getprio returns the priority of the named thread.
Zero is returned unless the thread is invalid or the prio is wrong. In both cases the value ESRCH is returned to signify the error.
If either
pthread_create(), pthread_attr_init()