15 auto Now = std::chrono::steady_clock::now();
19 duration CurMaxWait = std::min(MinWait * CurrentMultiplier, MaxWait);
20 std::uniform_int_distribution<uint64_t> Dist(MinWait.count(),
25 if (CurMaxWait < MaxWait)
26 CurrentMultiplier *= 2;
27 std::this_thread::sleep_for(WaitDuration);
bool waitForNextAttempt()
Blocks while waiting for the next attempt.
std::chrono::steady_clock::duration duration
This is an optimization pass for GlobalISel generic memory operations.