aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/common/resource_quota_cc.cc
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2018-08-17 08:11:10 -0700
committerGravatar Mark D. Roth <roth@google.com>2018-08-17 08:11:10 -0700
commite9e92d443cdb2b9b9cde7f13eb6a426e988df69a (patch)
tree24c6e432b90114c1a5263b848d525ae3e08d2371 /src/cpp/common/resource_quota_cc.cc
parent4d6f002780e936290ddc629a6eb04a95567f5f8a (diff)
parentd19fd1c689b1d60cf329331da7fab5d1ca6063cc (diff)
Merge remote-tracking branch 'juanlishen/pf_check_state_before_watch' into pf_keep_unselected_subchannels
Diffstat (limited to 'src/cpp/common/resource_quota_cc.cc')
-rw-r--r--src/cpp/common/resource_quota_cc.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpp/common/resource_quota_cc.cc b/src/cpp/common/resource_quota_cc.cc
index daeb0ba171..276e5f7954 100644
--- a/src/cpp/common/resource_quota_cc.cc
+++ b/src/cpp/common/resource_quota_cc.cc
@@ -33,4 +33,8 @@ ResourceQuota& ResourceQuota::Resize(size_t new_size) {
return *this;
}
+ResourceQuota& ResourceQuota::SetMaxThreads(int new_max_threads) {
+ grpc_resource_quota_set_max_threads(impl_, new_max_threads);
+ return *this;
+}
} // namespace grpc