Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_setscheduler(3)

pthread_getscheduler(3)  —  Subroutines

Digital

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

This 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 description of pthread_setscheduler for valid values. 

If an error condition occurs, this routine returns −1 and sets errno to the corresponding error value. Possible return values are as follows:

Return Error Description
 0 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

pthread_setscheduler(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026