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

Method ReleaseConn

library/cpp/neh/tcp2.cpp:554–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552 }
553
554 inline TConnectionRef ReleaseConn() noexcept {
555 TConnectionRef c;
556 {
557 auto g = Guard(AL_);
558 c.Swap(Conn_);
559 }
560 return c;
561 }
562
563 mutable TAdaptiveLock AL_; //guaranted calling notify() only once (prevent race between asio thread and current)
564 THandleRef Hndl_;

Callers

nothing calls this directly

Calls 2

GuardFunction · 0.85
SwapMethod · 0.45

Tested by

no test coverage detected