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

Method SwapWaitQueue

library/cpp/neh/wfmo.h:72–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71 private:
72 TIntrusivePtr<TWaitQueue> SwapWaitQueue(TWaitQueue* newQueue) noexcept {
73 return TIntrusivePtr<TWaitQueue>(AtomicSwap(&WaitQueue_, newQueue), TIntrusivePtr<TWaitQueue>::TNoIncrement());
74 }
75 private:
76 std::atomic<bool> Signalled_ = false;
77 TWaitQueue* WaitQueue_ = nullptr;

Callers

nothing calls this directly

Calls 2

TNoIncrementClass · 0.85
AtomicSwapFunction · 0.50

Tested by

no test coverage detected