MCPcopy Create free account
hub / github.com/apache/brpc / AddRecentError

Method AddRecentError

src/brpc/socket.cpp:1047–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

OnCompleteMethod · 0.80

Calls 1

fetch_addMethod · 0.80

Tested by

no test coverage detected