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

(C11)
blocks until a thread terminates
(function)
detaches a thread
(function)