thrd_exit
Header: <threads.h>
First, for every thread-specific storage key which was created with a non-null destructor and for which the associated value is non-null (see tss_create), thrd_exit sets the value associated with the key to NULL and then invokes the destructor with the previous value of the key. The order in which the destructors are invoked is unspecified.
# Declarations
_Noreturn void thrd_exit( int res );
(since C11) (until C23)
[[noreturn]] void thrd_exit( int res );
(since C23)
# Parameters
res: the result value to return
# Return value
(none)