PTHREAD_ATTR(3) BSD Programmer's Manual PTHREAD_ATTR(3)NAME
pthread_attr_init, pthread_attr_destroy - pthread creation attribute ob-
jects
SYNOPSIS
#include <pthread.h>
int
pthread_attr_init(pthread_attr_t *attr);
int
pthread_attr_destroy(pthread_attr_t *attr);
DESCRIPTION
This interface is defined by IEEE Std1003.1c (``POSIX'').
The pthread_attr_init() function initializes the pthread creation at-
tribute object specified by attr with the default pthread creation at-
tributes for the system.
The pthread_attr_destroy() function destroys a thread attribute object.
It in effect sets it to an uninitialized state.
RETURN VALUES
Upon successful completion, the pthread_attr_init and
pthread_attr_destroy functions both return 0. A non-zero result indi-
cates an error occurred.
ERRORS
The pthread_attr_init and pthread_attr_destroy functions may fail and re-
turn the following error:
[EINVAL] The value of a function argument is invalid.
SEE ALSOpthreads(3), pthread_create(3), pthread_join(3), pthread_detach(3)STANDARDS
The pthread_attr functions conform to IEEE Std1003.1c (``POSIX'').
HISTORY
The pthread_attr functions first appeared in BSD/OS 3.0.
4th Berkeley Distribution June 3, 1996 1