Searched refs:throttle_data (Results 1 – 3 of 3) sorted by relevance
33 auto throttle_data = in TEST() local36 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 …]
78 ServerRetryThrottleData** throttle_data) { in GetReplacementThrottleDataIfNeeded() argument82 gpr_atm_acq_load(&(*throttle_data)->replacement_)); in GetReplacementThrottleDataIfNeeded()84 *throttle_data = new_throttle_data; in GetReplacementThrottleDataIfNeeded()90 ServerRetryThrottleData* throttle_data = this; in RecordFailure() local91 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() local106 GetReplacementThrottleDataIfNeeded(&throttle_data); in RecordSuccess()[all …]
52 ServerRetryThrottleData** throttle_data);