Defined in header <threads.h>
int thrd_detach( thrd_t thr );
Detaches the thread identified by
thr from the current environment. The resources held by the thread will be freed automatically once the thread exits.
|thr||-||identifier of the thread to detach|
 Return value
 See also
| blocks until a thread terminates |