| 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_; |