aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/common
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-17 14:52:14 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-17 14:52:14 -0700
commit20afa3d7c933207c548ed11928c47b552b5b2f80 (patch)
treeea93d7458fb454dde9aca2083bf1fa89e69c189a /src/cpp/common
parent654b242ce70afcf9fdab674cab9b71d8d3f02502 (diff)
BufferPool --> ResourceQuota
Diffstat (limited to 'src/cpp/common')
-rw-r--r--src/cpp/common/channel_arguments.cc8
-rw-r--r--src/cpp/common/resource_quota_cc.cc (renamed from src/cpp/common/buffer_pool_cc.cc)14
2 files changed, 11 insertions, 11 deletions
diff --git a/src/cpp/common/channel_arguments.cc b/src/cpp/common/channel_arguments.cc
index afde513e1e..6e84170d97 100644
--- a/src/cpp/common/channel_arguments.cc
+++ b/src/cpp/common/channel_arguments.cc
@@ -34,7 +34,7 @@
#include <sstream>
-#include <grpc++/buffer_pool.h>
+#include <grpc++/resource_quota.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/support/log.h>
#include "src/core/lib/channel/channel_args.h"
@@ -114,9 +114,9 @@ void ChannelArguments::SetUserAgentPrefix(
}
}
-void ChannelArguments::SetBufferPool(const grpc::BufferPool& buffer_pool) {
- SetPointerWithVtable(GRPC_ARG_BUFFER_POOL, buffer_pool.c_buffer_pool(),
- grpc_buffer_pool_arg_vtable());
+void ChannelArguments::SetResourceQuota(const grpc::ResourceQuota& resource_quota) {
+ SetPointerWithVtable(GRPC_ARG_BUFFER_POOL, resource_quota.c_resource_quota(),
+ grpc_resource_quota_arg_vtable());
}
void ChannelArguments::SetInt(const grpc::string& key, int value) {
diff --git a/src/cpp/common/buffer_pool_cc.cc b/src/cpp/common/resource_quota_cc.cc
index fe5704d661..335896ab91 100644
--- a/src/cpp/common/buffer_pool_cc.cc
+++ b/src/cpp/common/resource_quota_cc.cc
@@ -31,20 +31,20 @@
*
*/
-#include <grpc++/buffer_pool.h>
+#include <grpc++/resource_quota.h>
#include <grpc/grpc.h>
namespace grpc {
-BufferPool::BufferPool() : impl_(grpc_buffer_pool_create(nullptr)) {}
+ResourceQuota::ResourceQuota() : impl_(grpc_resource_quota_create(nullptr)) {}
-BufferPool::BufferPool(const grpc::string& name)
- : impl_(grpc_buffer_pool_create(name.c_str())) {}
+ResourceQuota::ResourceQuota(const grpc::string& name)
+ : impl_(grpc_resource_quota_create(name.c_str())) {}
-BufferPool::~BufferPool() { grpc_buffer_pool_unref(impl_); }
+ResourceQuota::~ResourceQuota() { grpc_resource_quota_unref(impl_); }
-BufferPool& BufferPool::Resize(size_t new_size) {
- grpc_buffer_pool_resize(impl_, new_size);
+ResourceQuota& ResourceQuota::Resize(size_t new_size) {
+ grpc_resource_quota_resize(impl_, new_size);
return *this;
}