pthread_getprio(3-thr) pthread_getprio(3-thr)
NAME
pthreadgetprio - obtains the current priority of a thread
SYNOPSIS
#include <pthread.h>
int pthreadgetprio(pthreadt thread);
PARAMETERS
thread Thread whose priority is obtained.
DESCRIPTION
The pthreadgetprio() routine obtains the current priority of a
thread. The current priority is different from the initial priority of
the thread if the pthreadsetprio() routine is called.
The exact effect of different priority values depends upon the
scheduling policy assigned to the thread.
RETURN VALUES
The current priority value of the thread specified in thread is
returned. (See the pthreadsetprio() reference page for valid values.)
If the function fails, errno may be set to one of the following
values:
EINVAL The value specified by thread is invalid.
ESRCH The value specified by thread does not refer to an existing
thread.
SEE ALSO
pthreadattrsetprio(3-thr), pthreadsetprio(3-thr),
pthreadsetscheduler(3-thr).
Page 1 Reliant UNIX 5.44 Printed 11/98