chsvlib
chsv helper source code

◆ chsv_thrd_sleepfor()

void Chusov::ExecutionControl::chsv_thrd_sleepfor ( unsigned long  cMilliseconds)
noexcept

Suspends an execution of the calling thread for the specified amount of time.

Parameters
[in]cMillisecondsis a whole number of milliseconds for which the calling thread is to be suspended.
Returns
The function returns nothing.

This is a chsvlib specific extension to the chsv_thrd_sleep function which implements waiting for an absolute time specified as chsv_xtime object as specified by the C11 standard. The chsv_thrd_sleepfor function uses a relative time passed since the moment of a call.

See also
chsv_thrd_sleep;
chsv_thrd_yield;
chsv_thrd_current.