pthread_getscheduler(3-thr) pthread_getscheduler(3-thr)
NAME
pthreadgetscheduler - obtains the current scheduling policy of a
thread
SYNOPSIS
#include <pthread.h>
int pthreadgetscheduler(pthreadt thread);
PARAMETERS
thread Thread whose scheduling policy is obtained.
DESCRIPTION
The pthreadgetscheduler() routine obtains the current scheduling pol-
icy of a thread. The current scheduling policy of a thread is dif-
ferent from the initial scheduling policy if the
pthreadsetscheduler() routine is called.
RETURN VALUES
The current scheduling policy value of the thread specified in thread
is returned. (See the pthreadsetscheduler() 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
pthreadattrsetsched(3-thr), pthreadsetscheduler(3-thr).
Page 1 Reliant UNIX 5.44 Printed 11/98