MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Kriya::EventAwaiter Class Referenceabstract

Abstract base for all event-driven awaiters. More...

#include <EventAwaiter.hpp>

+ Inheritance diagram for MayaFlux::Kriya::EventAwaiter:
+ Collaboration diagram for MayaFlux::Kriya::EventAwaiter:

Public Member Functions

 EventAwaiter ()=default
 
 EventAwaiter (const EventAwaiter &)=delete
 
 EventAwaiter (EventAwaiter &&) noexcept=default
 
virtual bool filter_matches (const void *event) const =0
 Returns true if the candidate signal passes this awaiter's filter.
 
EventAwaiteroperator= (const EventAwaiter &)=delete
 
EventAwaiteroperator= (EventAwaiter &&) noexcept=default
 
virtual void try_resume (const void *event)=0
 Called by the source to attempt resumption of the suspended coroutine.
 
virtual ~EventAwaiter ()=default
 

Protected Attributes

std::coroutine_handle m_handle
 
bool m_is_suspended {}
 

Detailed Description

Abstract base for all event-driven awaiters.

Provides the interface EventSource uses to manage its waiter list without knowing the payload type or filter semantics of concrete awaiters.

See also
WindowEventAwaiter
SignalAwaiter

Definition at line 24 of file EventAwaiter.hpp.


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