PTHREAD_ATTR_DELETE(3P) SysV PTHREAD_ATTR_DELETE(3P)
NAME
pthread_attr_delete - Deletes a thread attributes object
SYNOPSIS
#include <pthread.h>
int pthread_attr_delete (attr)
pthread_attr_t *attr;
DESCRIPTION
The pthread_attr_delete function deletes a thread attributes object,
which allows the resources for the attr argument to be reclaimed.
The attr argument specifies the address of the thread attributes object
to be deleted.
NOTES
This interface is based on draft 4 of the IEEE P1003.4a standard, and
will be changed to conform to the final version.
DIAGNOSTICS
Upon successful completion, the attr argument is set to an illegal value,
and a value of 0 (zero) is returned. Otherwise, -1 is returned and errno
is set to indicate the error.
ERRORS
If the pthread_attr_delete function fails, errno may be set to the
following value:
[EINVAL] The value specified by the attr argument is invalid.
SEE ALSO
pthread_create(3P), pthread_attr_create(3P)