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

Method addRunner

fdbserver/VersionedBTree.actor.cpp:208–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206
207private:
208 void addRunner(Lock& lock) {
209 runners.push_back(map(ready(lock.promise.getFuture()), [=](Void) {
210 prioritylock_printf("Lock released\n");
211 ++available;
212 if (waiting > 0 || runners.size() > 100) {
213 release.trigger();
214 }
215 return Void();
216 }));
217 }
218
219 ACTOR static Future<Void> runner(PriorityMultiLock* self) {
220 state int sinceYield = 0;

Callers 1

runnerMethod · 0.95

Calls 6

mapFunction · 0.85
VoidClass · 0.50
push_backMethod · 0.45
getFutureMethod · 0.45
sizeMethod · 0.45
triggerMethod · 0.45

Tested by

no test coverage detected