Detach a thread from a process
#include <pthread.h> int pthread_detach( pthread_t thread );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_detach() function detaches the thread with the given ID from its process. When a detached thread terminates, all system resources allocated to that thread are immediately reclaimed.
- The thread thread is already detached.
- The thread thread doesn't exist.
Last modified: 2013-09-30