Deletes a thread attributes object.
pthread_attr_delete(
                    attr );
 
Argument         Data Type               Access
attr             opaque pthread_attr_t   read
int pthread_attr_delete ( pthread_attr_t *attr);
The results of calling this routine are unpredictable if the value specified by the attr argument refers to a thread attributes object that does not exist.
Return Error Description0 Successful completion. -1 [ENOMEM] Insufficient memory exists to create the thread attributes object. -1 [EINVAL] The value specified by attr is invalid. -1 [ESRCH] The value specified by attr does not refer to an existing thread attributes object.