Multithreaded Programming Guide

thr_getprio(3T)

Use thr_getprio() to get the current priority for the thread. Each thread inherits a priority from its creator. thr_getprio() stores the current priority, tid, in the location pointed to by newprio.

#include <thread.h>

int thr_getprio(thread_t tid, int *newprio)