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

Method addWork

fdbserver/DataDistributionQueue.actor.cpp:379–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377 return ledger[prio / 100] <= WORK_FULL_UTILIZATION - work; // allow for rounding errors in double division
378 }
379 void addWork(int prio, int work) {
380 ASSERT(prio > 0 && prio < 1000);
381 for (int i = 0; i <= (prio / 100); i++)
382 ledger[i] += work;
383 }
384 void removeWork(int prio, int work) { addWork(prio, -work); }
385 std::string toString() {
386 std::string result;

Callers 2

launchFunction · 0.80
launchDestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected