thrd_exit
thrd_exit
Defined in header <threads.h> | ||
---|---|---|
_Noreturn void thrd_exit( int res ); | (since C11) |
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.
If, after this, there remain keys with both non-null