retrieve a thread's scheduling priority
cc [options] -Kthread file
int thr_getprio(thread_t tid, int *prio);
stores tid's scheduling priority
in the location pointed to by prio.
thr_getscheduler can also be used to retrieve the priority
of a thread,
but thr_getprio is a shorthand for use when only the priority,
not the scheduling class, is needed.
No privileges or special permissions are required to use thr_getprio.
target thread ID
pointer to priority value (set by thr_getprio)
thr_getprio returns zero for success
and an error number for failure, as described below.
If any of the following error conditions is detected,
thr_getprio returns the corresponding value:
No thread with identifier tid can be found in the process.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004