aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/resource_quota.h
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-10-31 14:34:10 -0700
committerGravatar murgatroid99 <mlumish@google.com>2016-10-31 14:34:10 -0700
commit69259d425111696dd2df5a243e8b714db3dc3dac (patch)
treef5a6391bed091f9d6aa7b89cf479c4660850aefc /src/core/lib/iomgr/resource_quota.h
parenta12e6d8037d90269d91bd8d557ac66da4201b629 (diff)
Add resource quota support to uv TCP code
Diffstat (limited to 'src/core/lib/iomgr/resource_quota.h')
-rw-r--r--src/core/lib/iomgr/resource_quota.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/resource_quota.h b/src/core/lib/iomgr/resource_quota.h
index 6dfac55f88..da68f21a2c 100644
--- a/src/core/lib/iomgr/resource_quota.h
+++ b/src/core/lib/iomgr/resource_quota.h
@@ -221,4 +221,9 @@ void grpc_resource_user_alloc_slices(
grpc_resource_user_slice_allocator *slice_allocator, size_t length,
size_t count, gpr_slice_buffer *dest);
+/* Allocate one slice of length \a size synchronously. */
+gpr_slice grpc_resource_user_slice_malloc(grpc_exec_ctx *exec_ctx,
+ grpc_resource_user *resource_user,
+ size_t size);
+
#endif /* GRPC_CORE_LIB_IOMGR_RESOURCE_QUOTA_H */