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

Method Next

library/cpp/neh/rq.cpp:125–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 IRequestRef Next() override {
126 IRequestRef ret;
127
128 C_.Inc();
129 while (!Q_.Dequeue(&ret)) {
130 E_.Wait();
131 }
132 C_.Dec();
133
134 if (Q_.Size() && C_.Val()) {
135 E_.Signal();
136 }
137
138 return ret;
139 }
140
141 private:
142 TEvent E_;

Callers

nothing calls this directly

Calls 7

IncMethod · 0.45
DequeueMethod · 0.45
WaitMethod · 0.45
DecMethod · 0.45
SizeMethod · 0.45
ValMethod · 0.45
SignalMethod · 0.45

Tested by

no test coverage detected