Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::ThreadQuota Class Referenceabstract

#include <thread_quota.h>

Inheritance diagram for grpc_core::ThreadQuota:
Inheritance graph
[legend]

Public Member Functions

ThreadQuotaoperator= (const ThreadQuota &)=delete
 
void Release (size_t num_threads)
 
bool Reserve (size_t num_threads)
 
void SetMax (size_t new_max)
 
 ThreadQuota ()
 
 ThreadQuota (const ThreadQuota &)=delete
 
 ~ThreadQuota () override
 
- Public Member Functions inherited from grpc_core::RefCounted< ThreadQuota >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< ThreadQuotaRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ThreadQuotaRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< ThreadQuotaRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ThreadQuotaRefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~RefCounted ()=default
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Private Member Functions

size_t max_ ABSL_GUARDED_BY (mu_)
 
size_t allocated_ ABSL_GUARDED_BY (mu_)=0
 

Private Attributes

Mutex mu_
 

Additional Inherited Members

- Public Types inherited from grpc_core::RefCounted< ThreadQuota >
using RefCountedChildType = ThreadQuota
 
- Protected Member Functions inherited from grpc_core::RefCounted< ThreadQuota >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 32 of file thread_quota.h.

Constructor & Destructor Documentation

◆ ThreadQuota() [1/2]

grpc_core::ThreadQuota::ThreadQuota ( )
default

◆ ~ThreadQuota()

grpc_core::ThreadQuota::~ThreadQuota ( )
overridedefault

◆ ThreadQuota() [2/2]

grpc_core::ThreadQuota::ThreadQuota ( const ThreadQuota )
delete

Member Function Documentation

◆ ABSL_GUARDED_BY() [1/2]

size_t max_ grpc_core::ThreadQuota::ABSL_GUARDED_BY ( mu_  )
private

◆ ABSL_GUARDED_BY() [2/2]

size_t allocated_ grpc_core::ThreadQuota::ABSL_GUARDED_BY ( mu_  )
privatepure virtual

◆ operator=()

ThreadQuota& grpc_core::ThreadQuota::operator= ( const ThreadQuota )
delete

◆ Release()

void grpc_core::ThreadQuota::Release ( size_t  num_threads)

Definition at line 39 of file thread_quota.cc.

◆ Reserve()

bool grpc_core::ThreadQuota::Reserve ( size_t  num_threads)

Definition at line 32 of file thread_quota.cc.

◆ SetMax()

void grpc_core::ThreadQuota::SetMax ( size_t  new_max)

Definition at line 27 of file thread_quota.cc.

Member Data Documentation

◆ mu_

Mutex grpc_core::ThreadQuota::mu_
private

Definition at line 52 of file thread_quota.h.


The documentation for this class was generated from the following files:


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