hpx::this_thread::sleep_for

Contents

hpx::this_thread::sleep_for#

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:

inline void hpx::this_thread::sleep_for(hpx::chrono::steady_duration const &rel_time)#

Blocks the execution of the current thread for at least the specified rel_time. This function may block for longer than rel_time due to scheduling or resource contention delays.

It is recommended to use a steady clock to measure the duration. If an implementation uses a system clock instead, the wait time may also be sensitive to clock adjustments.

Parameters:

rel_time – time duration to sleep