diff options
author | 2018-08-01 11:22:40 -0700 | |
---|---|---|
committer | 2018-08-01 11:22:40 -0700 | |
commit | bdd13cb0aef7d3f6dbc467148b4b3158485359eb (patch) | |
tree | d5e1b9213c2ce5b8f2757bb277e1f612d3cf1af7 /include/grpc/grpc.h | |
parent | 92fd2620ab03c438fdeab23400cb6f31f5ba7816 (diff) |
Revert "Revert "Restrict the number of threads in C++ sync server""
Diffstat (limited to 'include/grpc/grpc.h')
-rw-r--r-- | include/grpc/grpc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h index f0eb2c0121..eb0251443c 100644 --- a/include/grpc/grpc.h +++ b/include/grpc/grpc.h @@ -450,6 +450,10 @@ GRPCAPI void grpc_resource_quota_unref(grpc_resource_quota* resource_quota); GRPCAPI void grpc_resource_quota_resize(grpc_resource_quota* resource_quota, size_t new_size); +/** Update the size of the maximum number of threads allowed */ +GRPCAPI void grpc_resource_quota_set_max_threads( + grpc_resource_quota* resource_quota, int new_max_threads); + /** Fetch a vtable for a grpc_channel_arg that points to a grpc_resource_quota */ GRPCAPI const grpc_arg_pointer_vtable* grpc_resource_quota_arg_vtable(void); |