Classes | Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::promise_detail::FreestandingActivity Class Referenceabstract

#include <activity.h>

Inheritance diagram for grpc_core::promise_detail::FreestandingActivity:
Inheritance graph
[legend]

Classes

class  Handle
 

Public Member Functions

void ForceImmediateRepoll () final
 
Waker MakeNonOwningWaker () final
 
Waker MakeOwningWaker () final
 
void Orphan () final
 
- Public Member Functions inherited from grpc_core::Activity
void ForceWakeup ()
 
- Public Member Functions inherited from grpc_core::Orphanable
Orphanableoperator= (const Orphanable &)=delete
 
 Orphanable (const Orphanable &)=delete
 

Protected Types

enum  ActionDuringRun : uint8_t { ActionDuringRun::kNone, ActionDuringRun::kWakeup, ActionDuringRun::kCancel }
 

Protected Member Functions

ActionDuringRun GotActionDuringRun () ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
 
Mutexmu () ABSL_LOCK_RETURNED(mu_)
 
void SetActionDuringRun (ActionDuringRun action) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
 
void WakeupComplete ()
 
 ~FreestandingActivity () override
 
- Protected Member Functions inherited from grpc_core::Activity
bool is_current () const
 
- Protected Member Functions inherited from grpc_core::Orphanable
 Orphanable ()
 
virtual ~Orphanable ()
 

Private Member Functions

ActionDuringRun action_during_run_ ABSL_GUARDED_BY (mu_)
 
Handle *handle_ ABSL_GUARDED_BY (mu_)
 
virtual void Cancel ()=0
 
void DropHandle () ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
 
void Ref ()
 
HandleRefHandle () ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_)
 
bool RefIfNonzero ()
 
void Unref ()
 
- Private Member Functions inherited from grpc_core::Wakeable
virtual void Drop ()=0
 
virtual void Wakeup ()=0
 
 ~Wakeable ()
 

Private Attributes

Mutex mu_
 
std::atomic< uint32_trefs_ {1}
 

Additional Inherited Members

- Static Public Member Functions inherited from grpc_core::Activity
static Activitycurrent ()
 
- Static Protected Member Functions inherited from grpc_core::Activity
static bool have_current ()
 

Detailed Description

Definition at line 233 of file activity.h.

Member Enumeration Documentation

◆ ActionDuringRun

Enumerator
kNone 
kWakeup 
kCancel 

Definition at line 255 of file activity.h.

Constructor & Destructor Documentation

◆ ~FreestandingActivity()

grpc_core::promise_detail::FreestandingActivity::~FreestandingActivity ( )
inlineoverrideprotected

Definition at line 261 of file activity.h.

Member Function Documentation

◆ ABSL_GUARDED_BY() [1/2]

ActionDuringRun action_during_run_ grpc_core::promise_detail::FreestandingActivity::ABSL_GUARDED_BY ( mu_  )
private

◆ ABSL_GUARDED_BY() [2/2]

Handle* handle_ grpc_core::promise_detail::FreestandingActivity::ABSL_GUARDED_BY ( mu_  )
private

◆ Cancel()

virtual void grpc_core::promise_detail::FreestandingActivity::Cancel ( )
privatepure virtual

◆ DropHandle()

void grpc_core::promise_detail::FreestandingActivity::DropHandle ( )
private

Definition at line 109 of file activity.cc.

◆ ForceImmediateRepoll()

void grpc_core::promise_detail::FreestandingActivity::ForceImmediateRepoll ( )
inlinefinalvirtual

Implements grpc_core::Activity.

Definition at line 246 of file activity.h.

◆ GotActionDuringRun()

ActionDuringRun grpc_core::promise_detail::FreestandingActivity::GotActionDuringRun ( )
inlineprotected

Definition at line 269 of file activity.h.

◆ MakeNonOwningWaker()

Waker grpc_core::promise_detail::FreestandingActivity::MakeNonOwningWaker ( )
finalvirtual

Implements grpc_core::Activity.

Definition at line 114 of file activity.cc.

◆ MakeOwningWaker()

Waker grpc_core::promise_detail::FreestandingActivity::MakeOwningWaker ( )
inlinefinalvirtual

Implements grpc_core::Activity.

Definition at line 235 of file activity.h.

◆ mu()

Mutex* grpc_core::promise_detail::FreestandingActivity::mu ( )
inlineprotected

Definition at line 284 of file activity.h.

◆ Orphan()

void grpc_core::promise_detail::FreestandingActivity::Orphan ( )
inlinefinalvirtual

Implements grpc_core::Orphanable.

Definition at line 241 of file activity.h.

◆ Ref()

void grpc_core::promise_detail::FreestandingActivity::Ref ( )
inlineprivate

Definition at line 292 of file activity.h.

◆ RefHandle()

FreestandingActivity::Handle * grpc_core::promise_detail::FreestandingActivity::RefHandle ( )
private

Definition at line 97 of file activity.cc.

◆ RefIfNonzero()

bool grpc_core::promise_detail::FreestandingActivity::RefIfNonzero ( )
private

Definition at line 95 of file activity.cc.

◆ SetActionDuringRun()

void grpc_core::promise_detail::FreestandingActivity::SetActionDuringRun ( ActionDuringRun  action)
inlineprotected

Definition at line 279 of file activity.h.

◆ Unref()

void grpc_core::promise_detail::FreestandingActivity::Unref ( )
inlineprivate

Definition at line 293 of file activity.h.

◆ WakeupComplete()

void grpc_core::promise_detail::FreestandingActivity::WakeupComplete ( )
inlineprotected

Definition at line 275 of file activity.h.

Member Data Documentation

◆ mu_

Mutex grpc_core::promise_detail::FreestandingActivity::mu_
private

Definition at line 309 of file activity.h.

◆ refs_

std::atomic<uint32_t> grpc_core::promise_detail::FreestandingActivity::refs_ {1}
private

Definition at line 312 of file activity.h.


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


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