Destroy a thread-attribute object
#include <pthread.h> int pthread_attr_destroy( pthread_attr_t * attr );
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.
POSIX 1003.1 THR
Processes and Threads chapter of Getting Started with QNX Neutrino