19 #ifndef GRPCPP_RESOURCE_QUOTA_H
20 #define GRPCPP_RESOURCE_QUOTA_H
Classes that require gRPC to be initialized should inherit from this class.
Definition: grpc_library.h:38
ResourceQuota represents a bound on memory and thread usage by the gRPC library.
Definition: resource_quota.h:34
grpc_resource_quota * c_resource_quota() const
Definition: resource_quota.h:57
ResourceQuota & Resize(size_t new_size)
Resize this ResourceQuota to a new size.
ResourceQuota(const std::string &name)
~ResourceQuota() override
ResourceQuota & SetMaxThreads(int new_max_threads)
Set the max number of threads that can be allocated from this ResourceQuota object.
struct grpc_resource_quota grpc_resource_quota
Definition: grpc_types.h:713
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33