|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <threads.h> | ||
int thrd_detach(thrd_t thr); | (since C11) | |
Detaches the thread identified bythr from the current environment. The resources held by the thread will be freed automatically once the thread exits.
Contents |
| thr | - | identifier of the thread to detach |
thrd_success if successful,thrd_error otherwise.
(C11) | blocks until a thread terminates (function)[edit] |
C++ documentation fordetach | |