#include <pthread.h> int pthread_detach( pthread_t thread );
The pthread_detach
routine is used to to indicate that storage
for thread
can be reclaimed when the thread terminates without
another thread joinging with it.
If any threads have previously joined with the specified thread, then they
will remain joined with that thread. Any subsequent calls to
pthread_join
on the specified thread will fail.
Copyright © 1988-2007OAR Corporation