pthread_attr_delete(3thr)pthread_attr_delete(3thr)Namepthread_attr_delete - Deletes a thread attributes object.
Syntax
#include <pthread.h>
int pthread_attr_delete (attr)
pthread_attr_t *attr;
Arguments
attr Thread attributes object deleted.
Description
This routine deletes a thread attributes object. This routine gives
permission to reclaim storage for the thread attributes object.
Threads that were created using this thread attributes object are not
affected by the deletion of the thread attributes object.
The results of calling this routine are unpredictable if the value
specified by the attr argument refers to a thread attributes object
that does not exist.
Return Values
If an error condition occurs, this routine returns -1 and sets errno to
the corresponding error value. Possible return values are as follows.
Return Error Description
0 Successful comple‐
tion.
-1 [ENOMEM] Insufficient memory
exists to create
the thread
attributes object.
-1 [EINVAL] The value specified
by attr is invalid.
-1 [ESRCH] The value specified
by attr does not
refer to an exist‐
ing thread
attributes object.
pthread_attr_delete(3thr)