Namespaces
Variants
Views
Actions

thread_detach

From cppreference.com
< c‎ | thread
Revision as of 18:36, 9 July 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Defined in header <threads.h>
int thrd_detach( thrd_t thr );
(since C11)

Detaches the thread identified by thr from the current environment. The resources held by the thread will be freed automatically once the thread exits.

[edit] Parameters

thr - identifier of the thread to detach

[edit] Return value

thrd_success if successful, thrd_error otherwise.

[edit] See also

blocks until a thread terminates
(function) [edit]