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

Method checkShutdown

fdbrpc/sim2.actor.cpp:926–930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

924 return f;
925 }
926 ACTOR static Future<Void> checkShutdown(Sim2* self, TaskPriority taskID) {
927 wait(success(self->getCurrentProcess()->shutdownSignal.getFuture()));
928 self->setCurrentTask(taskID);
929 return Void();
930 }
931 Future<class Void> yield(TaskPriority taskID) override {
932 if (taskID == TaskPriority::DefaultYield)
933 taskID = currentTaskID;

Callers

nothing calls this directly

Calls 4

setCurrentTaskMethod · 0.95
getCurrentProcessMethod · 0.80
VoidClass · 0.70
getFutureMethod · 0.45

Tested by

no test coverage detected