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

Method ReleaseConn2

library/cpp/neh/http2.cpp:484–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482 }
483
484 inline THttpConnRef ReleaseConn2() noexcept {
485 THttpConnRef c;
486 {
487 TGuard<TSpinLock> g(SL_);
488 c.Swap(Conn2_);
489 }
490 return c;
491 }
492
493 TSpinLock SL_; //guaranted calling notify() only once (prevent race between asio thread and current)
494 THandleRef Hndl_;

Callers

nothing calls this directly

Calls 1

SwapMethod · 0.45

Tested by

no test coverage detected