Namespaces | Functions
api.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/resource_quota/api.h"
#include <stdint.h>
#include <atomic>
#include <memory>
#include <string>
#include <utility>
#include "absl/strings/str_cat.h"
#include <grpc/grpc.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/channel/channel_args_preconditioning.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/resource_quota/memory_quota.h"
#include "src/core/lib/resource_quota/resource_quota.h"
#include "src/core/lib/resource_quota/thread_quota.h"
Include dependency graph for api.cc:

Go to the source code of this file.

Namespaces

 grpc_core
 

Functions

ChannelArgs grpc_core::EnsureResourceQuotaInChannelArgs (ChannelArgs args)
 
const grpc_arg_pointer_vtablegrpc_resource_quota_arg_vtable ()
 
grpc_resource_quotagrpc_resource_quota_create (const char *name)
 
void grpc_resource_quota_ref (grpc_resource_quota *resource_quota)
 
void grpc_resource_quota_resize (grpc_resource_quota *resource_quota, size_t new_size)
 
void grpc_resource_quota_set_max_threads (grpc_resource_quota *resource_quota, int new_max_threads)
 
void grpc_resource_quota_unref (grpc_resource_quota *resource_quota)
 
void grpc_core::RegisterResourceQuota (CoreConfiguration::Builder *builder)
 
ResourceQuotaRefPtr grpc_core::ResourceQuotaFromChannelArgs (const grpc_channel_args *args)
 

Function Documentation

◆ grpc_resource_quota_arg_vtable()

const grpc_arg_pointer_vtable* grpc_resource_quota_arg_vtable ( void  )

Fetch a vtable for a grpc_channel_arg that points to a grpc_resource_quota

Definition at line 62 of file api.cc.

◆ grpc_resource_quota_create()

grpc_resource_quota* grpc_resource_quota_create ( const char *  trace_name)

Create a buffer pool

Definition at line 66 of file api.cc.

◆ grpc_resource_quota_ref()

void grpc_resource_quota_ref ( grpc_resource_quota resource_quota)

Add a reference to a buffer pool

Definition at line 75 of file api.cc.

◆ grpc_resource_quota_resize()

void grpc_resource_quota_resize ( grpc_resource_quota resource_quota,
size_t  new_size 
)

Update the size of a buffer pool

Definition at line 83 of file api.cc.

◆ grpc_resource_quota_set_max_threads()

void grpc_resource_quota_set_max_threads ( grpc_resource_quota resource_quota,
int  new_max_threads 
)

Update the size of the maximum number of threads allowed

Definition at line 91 of file api.cc.

◆ grpc_resource_quota_unref()

void grpc_resource_quota_unref ( grpc_resource_quota resource_quota)

Drop a reference to a buffer pool

Definition at line 79 of file api.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:02