diff options
author | Sree Kuchibhotla <sreecha@users.noreply.github.com> | 2018-08-01 11:22:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 11:22:40 -0700 |
commit | bdd13cb0aef7d3f6dbc467148b4b3158485359eb (patch) | |
tree | d5e1b9213c2ce5b8f2757bb277e1f612d3cf1af7 /src/cpp/common | |
parent | 92fd2620ab03c438fdeab23400cb6f31f5ba7816 (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.cc | 4 |
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 |