Deletes a thread attributes object.
Threads Library (libpthreads.a)
#include <pthread.h>
int pthread_attr_destroy (attr)
pthread_attr_t *attr;
The pthread_attr_destroy subroutine destroys the thread attributes object attr, reclaiming its storage space. It has no effect on the threads previously created with that object.
Item | Description |
---|---|
attr | Specifies the thread attributes object to delete. |
Upon successful completion, 0 is returned. Otherwise, an error code is returned.
The pthread_attr_destroy subroutine is unsuccessful if the following is true:
Item | Description |
---|---|
EINVAL | The attr parameter is not valid. |
This function will not return an error code of [EINTR].