chsvlib
chsv helper source code

◆ chsv_thrd_current()

chsv_thrd_t Chusov::ExecutionControl::chsv_thrd_current ( void  )
noexcept

Returns an identifier of the calling thread.

Returns
An identifier of the thread that called the function.

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

See also
chsv_thrd_equal;
chsv_thrd_exit.