Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (n - p) pthread_attr_getinheritsched(2)
NAME
pthread_attr_getinheritsched
- Obtains the inherit scheduling attribute of a thread attributes
object
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int pthread_attr_getinheritsched(
const pthread_attr_t *attr,
int *inheritsched );
PARAMETERS
attr species the address of the thread attributes object whose inherit scheduling
attribute is obtained.
inheritsched receives the value of the inherit scheduling attribute.
DESCRIPTION
This function obtains the value of the inherit scheduling attribute of the thread attributes object
specied by the attr parameter and returns it in the inheritsched parameter. The inherit schedul-
ing attribute species whether threads created using the specied threads attributes object inherit
the scheduling attributes of the creating thread or use the scheduling attributes stored in the
threads attributes object specied by the pthread_create() attr parameter.
See the pthread_attr_setinheritsched(2) reference page either online or in the Open System
Services System Calls Reference Manual for information about the inherit scheduling attribute.
RETURN VALUES
If an error condition occurs, this function returns an integer value indicating the type of error.
Possible return values are:
0 Successful completion.
[EINVAL] The value specied by the attr parameter is invalid.
RELATED INFORMATION
Functions: pthread_attr_init(2), pthread_attr_setinheritsched(2), pthread_create(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication. Interfaces documented on this
reference page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 521