Destroy a thread-attribute object
#include <pthread.h> int pthread_attr_destroy( pthread_attr_t * attr );
- A pointer to the pthread_attr_t structure that you want to destroy.
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 BlackBerry 10 OS 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.
Last modified: 2013-12-23