PTHREAD_ATTR_GETSCOPE(3) BSD Programmer's Manual PTHREAD_ATTR_GETSCOPE(3)NAME
pthread_attr_getscope, pthread_attr_setscope - pthread scheduling con-
tention attribute
SYNOPSIS
#include <pthread.h>
int
pthread_attr_getscope(pthread_attr_t *attr, int *contentionscope);
int
pthread_attr_setscope(pthread_attr_t *attr, int contentionscope);
DESCRIPTION
This interface is defined by IEEE Std1003.1c (``POSIX'').
The pthread_attr_getscope() and pthread_attr_setscope() functions re-
trieve and establish the scheduling contention attribute in the pthread
creation attribute pointed to by attr. The contentionscope parameter may
have the values of PTHREAD_SCOPE_SYSTEM or PTHREAD_SCOPE_PROCESS only.
RETURN VALUES
Upon successful completion the pthread_attr_getscope and
pthread_attr_setscope functions both return 0. A non-zero result indi-
cates an error occurred. Upon successful completion the
pthread_attr_getscope function returns a copy of the contentionscope at-
tribute value in the location pointed to by contentionscope.
ERRORS
The pthread_attr_getscope and pthread_attr_setscope 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_getscope and pthread_attr_setscope functions conform to
IEEE Std1003.1c (``POSIX'').
HISTORY
The pthread_attr_getscope and pthread_attr_setscope functions first ap-
peared in BSD/OS 4.0.
4th Berkeley Distribution May 29, 1998 1