Go to the documentation of this file.
25 #include "absl/memory/memory.h"
39 bool finished_with_client_failed_to_send,
bool finished_known_received) {
41 if (finished_with_client_failed_to_send) {
45 if (finished_known_received) {
56 if (drop_token_counts_ ==
nullptr) {
57 drop_token_counts_ = absl::make_unique<DroppedCallCounts>();
59 for (
size_t i = 0;
i < drop_token_counts_->size(); ++
i) {
60 if (strcmp((*drop_token_counts_)[
i].token.get(), token) == 0) {
61 ++(*drop_token_counts_)[
i].count;
void AddCallFinished(bool finished_with_client_failed_to_send, bool finished_known_received)
#define gpr_atm_full_fetch_add(p, delta)
#define gpr_atm_full_xchg(p, n)
size_t num_calls_finished
void Get(int64_t *num_calls_started, int64_t *num_calls_finished, int64_t *num_calls_finished_with_client_failed_to_send, int64_t *num_calls_finished_known_received, std::unique_ptr< DroppedCallCounts > *drop_token_counts)
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
void AddCallDropped(const char *token)
gpr_atm num_calls_started_
gpr_atm num_calls_finished_known_received_
std::unique_ptr< T, DefaultDeleteChar > UniquePtr
gpr_atm num_calls_finished_
gpr_atm num_calls_finished_with_client_failed_to_send_
size_t num_calls_finished_known_received
std::map< std::string, size_t > drop_token_counts
GPRAPI char * gpr_strdup(const char *src)
size_t num_calls_finished_with_client_failed_to_send
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:45