#include <memory_quota.h>
Public Member Functions | |
double | InstantaneousPressure () const |
bool | is_valid () const |
template<typename T , typename... Args> | |
OrphanablePtr< T > | MakeOrphanable (Args &&... args) |
MemoryOwner ()=default | |
MemoryOwner (std::shared_ptr< GrpcMemoryAllocatorImpl > allocator) | |
absl::string_view | name () const |
template<typename F > | |
void | PostReclaimer (ReclamationPass pass, F fn) |
![]() | |
Reservation | MakeReservation (MemoryRequest request) |
grpc_slice | MakeSlice (MemoryRequest request) |
template<typename T , typename... Args> | |
std::unique_ptr< T > | MakeUnique (Args &&... args) |
Construct a unique_ptr immediately. More... | |
MemoryAllocator () | |
MemoryAllocator (const MemoryAllocator &)=delete | |
MemoryAllocator (MemoryAllocator &&)=default | |
MemoryAllocator (std::shared_ptr< internal::MemoryAllocatorImpl > allocator) | |
template<typename T , typename... Args> | |
std::enable_if< std::has_virtual_destructor< T >::value, T * >::type | New (Args &&... args) |
MemoryAllocator & | operator= (const MemoryAllocator &)=delete |
MemoryAllocator & | operator= (MemoryAllocator &&)=default |
void | Release (size_t n) |
Release some bytes that were previously reserved. More... | |
size_t | Reserve (MemoryRequest request) |
void | Reset () |
~MemoryAllocator () | |
Private Member Functions | |
GrpcMemoryAllocatorImpl * | impl () |
const GrpcMemoryAllocatorImpl * | impl () const |
Additional Inherited Members | |
![]() | |
internal::MemoryAllocatorImpl * | get_internal_impl_ptr () |
const internal::MemoryAllocatorImpl * | get_internal_impl_ptr () const |
Definition at line 381 of file memory_quota.h.
|
default |
|
inlineexplicit |
Definition at line 385 of file memory_quota.h.
|
inlineprivate |
Definition at line 415 of file memory_quota.h.
|
inlineprivate |
Definition at line 411 of file memory_quota.h.
|
inline |
Definition at line 395 of file memory_quota.h.
|
inline |
Definition at line 408 of file memory_quota.h.
|
inline |
Definition at line 400 of file memory_quota.h.
|
inline |
Definition at line 405 of file memory_quota.h.
|
inline |
Definition at line 390 of file memory_quota.h.