MCPcopy Create free account
hub / github.com/catboost/catboost / Wait

Method Wait

library/cpp/neh/neh.cpp:55–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 bool Wait(THandleRef& req, TInstant deadLine) override {
56 while (Complete_.empty()) {
57 if (Reqs_.empty()) {
58 return false;
59 }
60 TOnComplete cb(this);
61 WaitForMultipleObj(*WaitQueue_, deadLine, cb);
62 if (!cb.Signalled) {
63 return false;
64 }
65 }
66
67 req = *Complete_.begin();
68 Complete_.pop_front();
69
70 return true;
71 }
72
73 bool IsEmpty() const override {
74 return Reqs_.empty() && Complete_.empty();

Callers

nothing calls this directly

Calls 4

WaitForMultipleObjFunction · 0.85
pop_frontMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected