aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/common
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreecha@users.noreply.github.com>2018-08-01 11:22:40 -0700
committerGravatar GitHub <noreply@github.com>2018-08-01 11:22:40 -0700
commitbdd13cb0aef7d3f6dbc467148b4b3158485359eb (patch)
treed5e1b9213c2ce5b8f2757bb277e1f612d3cf1af7 /src/cpp/common
parent92fd2620ab03c438fdeab23400cb6f31f5ba7816 (diff)
Revert "Revert "Restrict the number of threads in C++ sync server""
Diffstat (limited to 'src/cpp/common')
-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