Marks a thread object for deletion.
pthread_detach( thread );
Argument Data Type Accessthread opaque pthread_t read
int pthread_detach ( pthread_t *thread);
Call this routine when a thread object is no longer referenced. Additionally, call this routine for every thread that is created to ensure that storage for thread objects does not accumulate.
You cannot join with a thread after the thread has been detached.
The results of this routine are unpredictable if the value of thread refers to a thread object that does not exist.
Return Error Description0 Successful completion. -1 [EINVAL] The value specified by thread is invalid.