Classes | Public Member Functions | Private Attributes | Friends | List of all members
grpc_core::ReclaimerQueue::Handle Class Reference

#include <memory_quota.h>

Inheritance diagram for grpc_core::ReclaimerQueue::Handle:
Inheritance graph
[legend]

Classes

class  Sweep
 
class  SweepFn
 

Public Member Functions

 Handle ()=default
 
 Handle (const Handle &)=delete
 
template<typename F >
 Handle (F reclaimer, std::shared_ptr< State > state)
 
Handleoperator= (const Handle &)=delete
 
void Orphan () final
 
bool Requeue (ReclaimerQueue *new_queue)
 
void Run (ReclamationSweep reclamation_sweep)
 
 ~Handle () override
 
- Public Member Functions inherited from grpc_core::InternallyRefCounted< Handle >
 InternallyRefCounted (const InternallyRefCounted &)=delete
 
InternallyRefCountedoperator= (const InternallyRefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::Orphanable
Orphanableoperator= (const Orphanable &)=delete
 
 Orphanable (const Orphanable &)=delete
 

Private Attributes

std::atomic< Sweep * > sweep_ {nullptr}
 

Friends

class ReclaimerQueue
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_core::InternallyRefCounted< Handle >
 InternallyRefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 
RefCountedPtr< Handle > Ref () GRPC_MUST_USE_RESULT
 
RefCountedPtr< Handle > Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~InternallyRefCounted () override=default
 
- Protected Member Functions inherited from grpc_core::Orphanable
 Orphanable ()
 
virtual ~Orphanable ()
 

Detailed Description

Definition at line 129 of file memory_quota.h.

Constructor & Destructor Documentation

◆ Handle() [1/3]

grpc_core::ReclaimerQueue::Handle::Handle ( )
default

◆ Handle() [2/3]

template<typename F >
grpc_core::ReclaimerQueue::Handle::Handle ( reclaimer,
std::shared_ptr< State state 
)
inlineexplicit

Definition at line 133 of file memory_quota.h.

◆ ~Handle()

grpc_core::ReclaimerQueue::Handle::~Handle ( )
inlineoverride

Definition at line 135 of file memory_quota.h.

◆ Handle() [3/3]

grpc_core::ReclaimerQueue::Handle::Handle ( const Handle )
delete

Member Function Documentation

◆ operator=()

Handle& grpc_core::ReclaimerQueue::Handle::operator= ( const Handle )
delete

◆ Orphan()

void grpc_core::ReclaimerQueue::Handle::Orphan ( )
finalvirtual

Implements grpc_core::Orphanable.

Definition at line 83 of file memory_quota.cc.

◆ Requeue()

bool grpc_core::ReclaimerQueue::Handle::Requeue ( ReclaimerQueue new_queue)

Definition at line 96 of file memory_quota.cc.

◆ Run()

void grpc_core::ReclaimerQueue::Handle::Run ( ReclamationSweep  reclamation_sweep)

Definition at line 90 of file memory_quota.cc.

Friends And Related Function Documentation

◆ ReclaimerQueue

friend class ReclaimerQueue
friend

Definition at line 147 of file memory_quota.h.

Member Data Documentation

◆ sweep_

std::atomic<Sweep*> grpc_core::ReclaimerQueue::Handle::sweep_ {nullptr}
private

Definition at line 178 of file memory_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