Namespaces
Variants
Views
Actions

thread_exit

From cppreference.com
< c | thread
Defined in header <threads.h>
_Noreturn void thrd_exit( int res );
(since C11)

Terminates the current thread and sets its result code to res.

[edit] Parameters

res - the result value to return

[edit] Return value

(none)

[edit] See also

blocks until a thread terminates
(function) [edit]
detaches a thread
(function) [edit]