PTHREAD_ATTR_SCHEDPARAM(3) BSD Programmer's Manual PTHREAD_ATTR_SCHEDPARAM(3)NAME
pthread_attr_getschedparam, pthread_attr_setschedparam - pthread schedul-
ing parameter attribute objects
SYNOPSIS
#include <pthread.h>
#include <sched.h>
int
pthread_attr_getschedparam(pthread_attr_t *attr,
struct sched_param *param);
int
pthread_attr_setschedparam(pthread_attr_t *attr,
const struct sched_param *param);
DESCRIPTION
This interface is defined by IEEE Std1003.1c (``POSIX'').
The pthread_attr_getschedparam() and pthread_attr_setschedparam() func-
tions retrieve and establish the scheduling parameters attribute in the
pthread creation attribute pointed to by attr. Currently the only valid
field in param is sched_priority.
RETURN VALUES
Upon successful completion the pthread_attr_getschedparam and
pthread_attr_setschedparam functions both return 0. A non-zero result
indicates an error occurred.
ERRORS
The pthread_attr_getschedparam and pthread_attr_setschedparam functions
may fail and return the following error:
[EINVAL] The value of a function argument is invalid.
SEE ALSOpthreads(3), pthread_attr(3), pthread_create(3)STANDARDS
The pthread_attr_getschedparam and pthread_attr_setschedparam functions
conform to IEEE Std1003.1c (``POSIX'').
HISTORY
The pthread_attr_getschedparam and pthread_attr_setschedparam functions
first appeared in BSD/OS 3.0.
4th Berkeley Distribution June 3, 1996 1