![]() |
![]() |
![]() |
Destroy thread attribute object
#include <pthread.h> int pthread_attr_destroy( pthread_attr_t * attr );
libc
The pthread_attr_destroy() function destroys the thread attribute object attr. The attribute object shouldn't be reused unless it's reinitialized using pthread_attr_init().
The resulting attributes object (possibly modified by setting individual attribute values), when used by pthread_create() defines the attributes of the thread created. A single attributes object can be used in multiple simultaneous calls to pthread_create(). The effect of initializing an already initialized thread attributes object is undefined.
0 for success, or an error number.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_attr_init(), pthread_create()
![]() |
![]() |
![]() |