chsvlib
chsv helper source code

◆ chsv_thrd_exit()

void Chusov::ExecutionControl::chsv_thrd_exit ( int  res)
noexcept

Terminates execution of the calling thread setting its result code to the specified value.

Parameters
[in]resis a result code to set for the terminating thread.
Returns
The function returns nothing.

Calling the function has the same effect as returning a value of res from the entry point of the thread.

The function implements a behaviour of the thrd_exit function defined in the ISO/IEC 9899:2011 (aka C11) standard.

See also
chsv_thrd_create;
chsv_thrd_join;
chsv_thrd_detach.