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

Method WaitD

util/system/condvar.cpp:49–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 inline bool WaitD(TMutex& m, TInstant deadLine) noexcept {
50 TWaitEvent event;
51
52 with_lock (Lock_) {
53 Events_.PushBack(&event);
54 }
55
56 m.Release();
57
58 const bool signalled = event.WaitD(deadLine);
59
60 m.Acquire();
61
62 with_lock (Lock_) {
63 event.Unlink();
64 }
65
66 return signalled;
67 }
68
69 private:
70 TWaitEvents Events_;

Callers

nothing calls this directly

Calls 3

ReleaseMethod · 0.45
WaitDMethod · 0.45
AcquireMethod · 0.45

Tested by

no test coverage detected