The thread attribute is copied in pthread_create
, so it should be destroyed after pthread_create
call.
Requires reading between lines here http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_create.html:
If the attributes specified by attr are modified later, the thread's attributes shall not be affected.