thread_exit
From cppreference.com
Defined in header
<threads.h>
|
||
_Noreturn void thrd_exit( int res );
|
(since C11) | |
Terminates the current thread and sets its result code to res
.
This section is incomplete Reason: The termination of the program after the last thread. The standard seems to be contradictory |
[edit] Parameters
res | - | the result value to return |
[edit] Return value
(none)
[edit] See also
(C11)
|
blocks until a thread terminates (function) |
(C11)
|
detaches a thread (function) |