Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pthread_getprio(3) — HP-UX 10.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_attr_setprio(3)

pthread_setprio(3)

pthread_setscheduler(3)

pthread_getprio(3)

NAME

pthread_getprio - Obtains the current priority of a thread

SYNOPSIS

#include <pthread.h> int pthread_getprio( pthread_t thread);

PARAMETERS

threadThread whose priority is obtained. 

DESCRIPTION

The pthread_getprio() routine obtains the current priority of a thread. The current priority is different from the initial priority of the thread if the pthread_setprio() 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 pthread_setprio() reference page for valid values.) If the function fails, errno may be set to one of the following values:

Return Error Description
Priority value 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_setprio(3), pthread_setprio(3), pthread_setscheduler(3). 

 

Hewlett-Packard Company  —  OSF DCE 1.1/HP DCE 1.5

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