hpx::this_thread::sleep_until#
Defined in header hpx/thread.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
void hpx::this_thread::sleep_until(hpx::chrono::steady_time_point const &abs_time)#
Blocks the execution of the current thread until specified abs_time has been reached.
It is recommended to use the clock tied to abs_time, in which case adjustments of the clock may be taken into account. Thus, the duration of the block might be more or less than
abs_time-Clock::now()at the time of the call, depending on the direction of the adjustment and whether it is honored by the implementation. The function also may block until after abs_time has been reached due to process scheduling or resource contention delays.- Parameters:
abs_time – absolute time to block until