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

Method Next

library/cpp/neh/rq.cpp:44–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 IRequestRef Next() override {
45 IRequestRef ret;
46
47#if 0
48 for (size_t i = 0; i < 20; ++i) {
49 if (Q_.Dequeue(&ret)) {
50 return ret;
51 }
52
53 //asm volatile ("pause;");
54 }
55#endif
56
57 while (!Q_.Dequeue(&ret)) {
58 char ch;
59
60 R_.Read(&ch, 1);
61 }
62
63 return ret;
64 }
65
66 private:
67 TPipeHandle R_;

Callers 3

Y_UNIT_TESTFunction · 0.45
SafeWriteHeadersFunction · 0.45
DoExecuteMethod · 0.45

Calls 2

DequeueMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected