| 2712 | } |
| 2713 | |
| 2714 | void Socket::ShareStats(Socket* main_socket) { |
| 2715 | SharedPart* main_sp = main_socket->GetOrNewSharedPart(); |
| 2716 | main_sp->AddRefManually(); |
| 2717 | SharedPart* my_sp = |
| 2718 | _shared_part.exchange(main_sp, butil::memory_order_acq_rel); |
| 2719 | if (my_sp) { |
| 2720 | my_sp->RemoveRefManually(); |
| 2721 | } |
| 2722 | } |
| 2723 | |
| 2724 | int Socket::GetPooledSocket(SocketUniquePtr* pooled_socket) { |
| 2725 | if (pooled_socket == NULL) { |
no test coverage detected