| 1045 | } |
| 1046 | |
| 1047 | void Socket::AddRecentError() { |
| 1048 | SharedPart* sp = GetSharedPart(); |
| 1049 | if (sp) { |
| 1050 | sp->recent_error_count.fetch_add(1, butil::memory_order_relaxed); |
| 1051 | } |
| 1052 | } |
| 1053 | |
| 1054 | int64_t Socket::recent_error_count() const { |
| 1055 | SharedPart* sp = GetSharedPart(); |