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