MCPcopy Create free account
hub / github.com/dmlc/parameter_server / wait

Method wait

src/system/task_tracker.h:17–20  ·  view source on GitHub ↗

wait until task k has been finished

Source from the content-addressed store, hash-verified

15
16 // wait until task k has been finished
17 void wait(int k) {
18 ULock l(mu_);
19 cond_.wait(l, [this, k]{ return (task_.count(k) && task_[k] == true); });
20 }
21
22 // non-blocking wait
23 bool tryWait(int k) {

Callers 12

runMethod · 0.80
startMethod · 0.80
stopMethod · 0.80
submitMethod · 0.80
waitOutgoingTaskMethod · 0.80
waitIncomingTaskMethod · 0.80
preprocessDataMethod · 0.80
wait_and_popMethod · 0.80
pushMethod · 0.80
popMethod · 0.80
BlockMethod · 0.80
getNextTaskMethod · 0.80

Calls 1

countMethod · 0.80

Tested by

no test coverage detected