detach a thread
cc [options] -Kthread file
int pthread_detach(pthread_t thread);
is used to indicate to the implementation that storage
for the thread
can be reclaimed when that thread terminates.
After pthread_detach is called for thread,
it is no longer possible to successfully pthread_join
has not terminated,
will not cause it to terminate.
The effect of multiple
calls on the same target thread is unspecified.
If the call succeeds,
Otherwise, an error number is returned to indicate the error.
function will fail if:
the value specified by
does not refer to a joinable thread
no thread could be found corresponding to that specified
by the given thread ID
The Single UNIX Specification, Version 2; The Open Group.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004