Returns the scheduling priority of the context that is bound to the specified thread.
#include <nks/thread.h> int NXThreadGetPriority ( NXThreadId_t tid, int *priority);
(IN) Specifies the target thread ID.
(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:
A thread assumes the priority of the context it is currently hosting.
For sample code, see Priority.c.