Destroy a thread-attribute object
#include <pthread.h> int pthread_attr_destroy( pthread_attr_t * attr );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_attr_destroy() function destroys the given thread-attribute object.
You can use a thread-attribute object to define the attributes of new threads when you call pthread_create().
0 for success, or an error number.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |