pthread_getscheduler(3)
NAME
pthread_getscheduler - Obtains the current scheduling policy of a thread
SYNOPSIS
#include <pthread.h> int pthread_getscheduler( pthread_t thread);
PARAMETERS
threadThread whose scheduling policy is obtained.
DESCRIPTION
The pthread_getscheduler() routine obtains the current scheduling policy of a thread. The current scheduling policy of a thread is different from the initial scheduling policy if the pthread_setscheduler() routine is called.
RETURN VALUES
The current scheduling policy value of the thread specified in thread is returned. (See the pthread_setscheduler() reference page for valid values.) If the function fails, errno may be set to one of the following values:
| Return | Error | Description |
| Current scheduling policy | Successful completion. | |
| −1 | [EINVAL] | The value specified by thread is invalid. |
| −1 | [ESRCH] | The value specified by thread does not refer to an existing thread. |
RELATED INFORMATION
Functions: pthread_attr_setscheduler(3), pthread_setscheduler(3).
Hewlett-Packard Company — OSF DCE 1.1/HP DCE 1.5