Sets the scheduling priority of the specified thread.
#include <nks/thread.h> int NXThreadSetPriority ( NXThreadId_t tid, int priority);
(IN) Specifies the ID of the target thread.
(IN) Specifies the priority value to be set:
If successful, returns 0; otherwise, returns a nonzero error code:
NKS maintains execution priority as part of the context state. Hence, a priority change effected by calling NXThreadSetPriority modifies the priority of the context currently bound to the specified thread.
NXThreadSetPriority is also valid for worker threads.
NOTE:Because the NetWare scheduler does not currently support priority, this call has no effect on NetWare.
For sample code, see Priority.c.