diff options
author | 2017-10-30 16:16:20 -0700 | |
---|---|---|
committer | 2017-10-30 16:16:20 -0700 | |
commit | 94a52266c9570b5658764e16832f8eef246641f1 (patch) | |
tree | 60b0aab54d5c5a408d7eb623438222ebd7e3d2f0 /src | |
parent | 9e6837d3978b35b267af319b95a2b0265d9c4c77 (diff) | |
parent | e9f5c9058b72298ef857f4f7716d61d03f289d1b (diff) |
Merge pull request #13082 from vjpai/friendly_fire
GPR_ATTRIBUTE_NO_TSAN doesn't reach through function calls, so use a friend
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ext/transport/chttp2/transport/flow_control.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/ext/transport/chttp2/transport/flow_control.h b/src/core/ext/transport/chttp2/transport/flow_control.h index d5107d467b..7dd348ed5f 100644 --- a/src/core/ext/transport/chttp2/transport/flow_control.h +++ b/src/core/ext/transport/chttp2/transport/flow_control.h @@ -32,6 +32,12 @@ struct grpc_chttp2_stream; extern "C" grpc_tracer_flag grpc_flowctl_trace; +namespace grpc { +namespace testing { +class TrickledCHTTP2; // to make this a friend +} // namespace testing +} // namespace grpc + namespace grpc_core { namespace chttp2 { @@ -203,6 +209,7 @@ class TransportFlowControl { } private: + friend class ::grpc::testing::TrickledCHTTP2; double TargetLogBdp(); double SmoothLogBdp(grpc_exec_ctx* exec_ctx, double value); FlowControlAction::Urgency DeltaUrgency(int32_t value, @@ -297,6 +304,7 @@ class StreamFlowControl { } private: + friend class ::grpc::testing::TrickledCHTTP2; TransportFlowControl* const tfc_; const grpc_chttp2_stream* const s_; |