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.
The QNX implementation of this function doesn't actually free the memory used by the pthread_attr_t structure. To conform to the POSIX standard, don't reuse the attribute object unless you reinitialize it by calling pthread_attr_init(). |
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 |
pthread_attr_init(), pthread_create()
Processes and Threads chapter of Getting Started with QNX Neutrino