Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (n - p) pthread_attr_getschedpolicy(2)
NAME
pthread_attr_getschedpolicy
- Obtains the scheduling policy 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_getschedpolicy(
const pthread_attr_t *attr,
int *policy );
PARAMETERS
attr specifies the address of the thread attributes object whose scheduling policy
attribute is obtained.
policy receives the value of the scheduling policy attribute.
DESCRIPTION
This function obtains the value of the scheduling policy attribute of the thread attributes object
specified by the attr parameter and returns it in the policy parameter. The scheduling policy attri-
bute defines the scheduling policy for threads created using this threads attributes object.
See the pthread_attr_setschedpolicy(2) reference page either online or in the Open System Ser-
vices System Calls Reference Manual for information about the scheduling policy 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 specified by the attr parameter is invalid.
RELATED INFORMATION
Functions: pthread_attr_init(2), pthread_attr_setschedpolicy(2), pthread_create(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specification. 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 file spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 5−23