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 ESRCH or the prio is invalid EINVAL.
If either
pthread_create(), pthread_attr_init()