Home
last modified time | relevance | path

Searched refs:throttle_data (Results 1 – 3 of 3) sorted by relevance

/external/grpc-grpc/test/core/client_channel/
Dretry_throttle_test.cc33 auto throttle_data = in TEST() local
36 EXPECT_TRUE(throttle_data->RecordFailure()); in TEST()
38 throttle_data->RecordSuccess(); in TEST()
40 EXPECT_TRUE(throttle_data->RecordFailure()); in TEST()
42 EXPECT_FALSE(throttle_data->RecordFailure()); in TEST()
44 EXPECT_FALSE(throttle_data->RecordFailure()); in TEST()
46 EXPECT_FALSE(throttle_data->RecordFailure()); in TEST()
49 EXPECT_FALSE(throttle_data->RecordFailure()); in TEST()
51 throttle_data->RecordSuccess(); in TEST()
53 throttle_data->RecordSuccess(); in TEST()
[all …]
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dretry_throttle.cc78 ServerRetryThrottleData** throttle_data) { in GetReplacementThrottleDataIfNeeded() argument
82 gpr_atm_acq_load(&(*throttle_data)->replacement_)); in GetReplacementThrottleDataIfNeeded()
84 *throttle_data = new_throttle_data; in GetReplacementThrottleDataIfNeeded()
90 ServerRetryThrottleData* throttle_data = this; in RecordFailure() local
91 GetReplacementThrottleDataIfNeeded(&throttle_data); in RecordFailure()
95 &throttle_data->milli_tokens_, static_cast<gpr_atm>(-1000), in RecordFailure()
97 static_cast<gpr_atm>(throttle_data->max_milli_tokens_))); in RecordFailure()
100 return new_value > throttle_data->max_milli_tokens_ / 2; in RecordFailure()
105 ServerRetryThrottleData* throttle_data = this; in RecordSuccess() local
106 GetReplacementThrottleDataIfNeeded(&throttle_data); in RecordSuccess()
[all …]
Dretry_throttle.h52 ServerRetryThrottleData** throttle_data);