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

Method tryWait

src/system/task_tracker.h:23–26  ·  view source on GitHub ↗

non-blocking wait

Source from the content-addressed store, hash-verified

21
22 // non-blocking wait
23 bool tryWait(int k) {
24 Lock l(mu_);
25 return (task_.count(k) && task_[k] == true);
26 }
27
28 // start task k, do nothing if it has been started or finished
29 void start(int k) {

Callers 2

tryWaitOutgoingTaskMethod · 0.80
tryWaitIncomingTaskMethod · 0.80

Calls 1

countMethod · 0.80

Tested by

no test coverage detected