#include <thread_quota.h>

Public Member Functions | |
| ThreadQuota & | operator= (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 > | |
| RefCounted & | operator= (const RefCounted &)=delete |
| RefCountedPtr< ThreadQuota > | Ref () GRPC_MUST_USE_RESULT |
| RefCountedPtr< ThreadQuota > | Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT |
| RefCounted (const RefCounted &)=delete | |
| RefCountedPtr< ThreadQuota > | RefIfNonZero () GRPC_MUST_USE_RESULT |
| RefCountedPtr< ThreadQuota > | RefIfNonZero (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) | |
Definition at line 32 of file thread_quota.h.
|
default |
|
overridedefault |
|
delete |
|
privatepure virtual |
|
delete |
| void grpc_core::ThreadQuota::Release | ( | size_t | num_threads | ) |
Definition at line 39 of file thread_quota.cc.
| bool grpc_core::ThreadQuota::Reserve | ( | size_t | num_threads | ) |
Definition at line 32 of file thread_quota.cc.
| void grpc_core::ThreadQuota::SetMax | ( | size_t | new_max | ) |
Definition at line 27 of file thread_quota.cc.
|
private |
Definition at line 52 of file thread_quota.h.