35 template <
typename Clock,
typename Duration,
typename F>
37 std::chrono::time_point<Clock, Duration>
const& deadline,
51 if (tnow >= deadline) {
57 if (tnow >= tbegin + opt.
spin_max()) {
69 template <
typename Clock,
typename Duration,
typename F>
71 std::chrono::time_point<Clock, Duration>
const& deadline,
spin_result spin_yield_until(std::chrono::time_point< Clock, Duration > const &deadline, F f)
std::chrono::nanoseconds spin_max() const
std::chrono::steady_clock::time_point now()
—— Concurrent Priority Queue Implementation ——
spin_result spin_pause_until(std::chrono::time_point< Clock, Duration > const &deadline, WaitOptions const &opt, F f)
void asm_volatile_pause()