Returns the value associated with the specified key.
#include <thread.h> int thr_getprio ( thread_t thr, int *pri);
(IN) Specifies the thread.
(OUT) Points to the location where the priority of the target thread is returned. Valid priorities are specified with the following flags:
If successful, returns 0; otherwise, returns a nonzero error code:
The thr_getprio function returns the priority associated with the specified thread. Currently, all threads run at the same priority, regardless of the priority value associated with them.