CThreadInterrupt::sleep_for

Sleep for the given duration, returning early if interrupted.

Synopsis

Declared in <util/threadinterrupt.h>

virtual
bool
sleep_for(Clock::duration rel_time);

Return Value

true if the full duration elapsed, false if the sleep was interrupted.

Parameters

NameDescription
rel_timeThe duration to sleep for.