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

Method Register

library/cpp/neh/wfmo.h:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void Register(TIntrusivePtr<TWaitQueue>& waitQueue) noexcept {
47 if (Signalled_) {
48 waitQueue->Notify(this);
49 SwapWaitQueue(nullptr);
50 return;
51 }
52
53 waitQueue->Ref();
54 SwapWaitQueue(waitQueue.Get());
55
56 if (Signalled_) {
57 if (TIntrusivePtr<TWaitQueue> q = SwapWaitQueue(nullptr)) {
58 q->Notify(this);
59 }
60 }
61 }
62
63 bool Signalled() const {
64 return Signalled_;

Callers 1

WaitForOneFunction · 0.45

Calls 3

NotifyMethod · 0.45
RefMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected