pthread_attr_getschedparam()

get scheduling parameter attribute 

Function


SYNOPSIS

#include <pthread.h>

int pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *param);


DESCRIPTION

The pthread_attr_getschedparam() function gets the scheduling parameters from the thread attribute object. The priority member is the only member of struct sched_param currently supported.


PARAMETERS

attr 

Is a thread attribute object.

param 

Is the address of the location used to store the current scheduling parameters.


RETURN VALUES

On success, pthread_attr_getschedparam() returns 0. On error, one of the following values is returned:

EFAULT 

attr or param is an invalid pointer.

EINVAL 

attr does not refer to a valid thread attribute object, or param is not writable.


CONFORMANCE

POSIX P1003.1 (1996)


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

The priority member is the only member of struct sched_param currently supported.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_attr_init(), pthread_attr_setinheritsched(), pthread_attr_setschedparam(), sched_get_priority_max(), sched_get_priority_min()


PTC MKS Toolkit 10.4 Documentation Build 39.