Template:cpp/thread/block until
From cppreference.com
Revision as of 04:17, 11 October 2022 by RobStewart (Talk | contribs)
Clock
must meet the Clock requirements. The program is ill-formed if std::chrono::is_clock_v<Clock> is false(since C++20).
The standard recommends that the clock tied to {{{1}}}
be used, in which case adjustments of the clock may be taken into account. Thus, the duration of the block might be more or less than {{{1}}} - 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 {{{1}}}
has been reached due to process scheduling or resource contention delays.