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

Function WaitForMultipleObj

library/cpp/neh/wfmo.h:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98 template <class T>
99 static inline void WaitForMultipleObj(TWaitQueue& hndl, const TInstant& deadLine, T& func) {
100 do {
101 TWaitHandle* ret = nullptr;
102
103 if (hndl.Dequeue(&ret)) {
104 do {
105 func(ret);
106 } while (hndl.Dequeue(&ret));
107
108 return;
109 }
110 } while (hndl.Wait(deadLine));
111 }
112
113 struct TSignalled {
114 inline TSignalled()

Callers 2

WaitMethod · 0.85
WaitForOneFunction · 0.85

Calls 3

funcFunction · 0.85
DequeueMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected