chsvlib
chsv helper source code

◆ chsv_thrd_sleep()

void Chusov::ExecutionControl::chsv_thrd_sleep ( const chsv_xtime xt)
noexcept

Suspends an execution of the calling thread until the specified time has passed.

Parameters
[in]xtis a pointer to a chsv_xtime object, specifying an absolute time since the Epoch, when the calling thread is to resume its execution.
Returns
The function returns nothing.

An absolute time is a time passed since the Epoch. See chsv_xtime_get for more details.

To specify a relative time use the chsv_thrd_sleepfor function.

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

See also
chsv_thrd_sleepfor;
chsv_thrd_yield;
chsv_thrd_current.