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

Function WaitForOne

library/cpp/neh/wfmo.h:126–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 };
125
126 static inline bool WaitForOne(TWaitHandle& wh, const TInstant& deadLine) {
127 TSignalled func;
128 auto hndl = MakeIntrusive<TWaitQueue>();
129 wh.Register(hndl);
130
131 WaitForMultipleObj(*hndl, deadLine, func);
132
133 return func.Signalled;
134 }
135}

Callers 1

WaitMethod · 0.85

Calls 2

WaitForMultipleObjFunction · 0.85
RegisterMethod · 0.45

Tested by

no test coverage detected