MCPcopy Create free account
hub / github.com/apple/foundationdb / delay

Method delay

fdbrpc/sim2.actor.cpp:901–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899 double timer_monotonic() override { return timer(); }
900
901 Future<class Void> delay(double seconds, TaskPriority taskID) override {
902 ASSERT(taskID >= TaskPriority::Min && taskID <= TaskPriority::Max);
903 return delay(seconds, taskID, currentProcess);
904 }
905 Future<class Void> orderedDelay(double seconds, TaskPriority taskID) override {
906 ASSERT(taskID >= TaskPriority::Min && taskID <= TaskPriority::Max);
907 return delay(seconds, taskID, currentProcess, true);

Callers 2

asyncSleepFunction · 0.45
doRebootFunction · 0.45

Calls 8

delayFunction · 0.85
deterministicRandomFunction · 0.85
random01Method · 0.80
TaskClass · 0.70
isSetMethod · 0.45
enterMethod · 0.45
pushMethod · 0.45
leaveMethod · 0.45

Tested by

no test coverage detected