chsvlib
chsv helper source code

◆ chsv_thrd_equal()

int Chusov::ExecutionControl::chsv_thrd_equal ( chsv_thrd_t  thr0,
chsv_thrd_t  thr1 
)
noexcept

Determines whether the two identifies refer to the same thread.

Parameters
[in]thr0is an identifier of the first thread.
[in]thr1is an identifier of the second thread.
Returns
The function returns zero if the identifiers refer to different threads or a nonzero value otherwise.

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

See also
chsv_thrd_current.