MCPcopy Create free account
hub / github.com/baidu/tera / EnterFlowControlMode

Method EnterFlowControlMode

src/quota/flow_controller.h:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void EnterFlowControlMode(uint64_t value) {
76 std::lock_guard<std::mutex> _{mu_};
77 status_.store(FlowControlStatus::kFlowControlMode);
78 limiter_.SetLimit(value);
79 }
80
81 void LeaveFlowControlMode() {
82 std::lock_guard<std::mutex> _{mu_};

Callers 2

SetSlowdownModeMethod · 0.80
UpdateMethod · 0.80

Calls 1

SetLimitMethod · 0.45

Tested by

no test coverage detected