class EventWaiter
Defined at line 69 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.h
Object which waits on an underlying async loop and triggers the dispatcher to
service its callbacks.
Public so it can be referenced by the DispatcherCoordinator.
Public Methods
void EventWaiter (zx::event event, Callback callback)
Defined at line 74 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.h
bool signaled ()
Defined at line 88 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.h
void signal ()
Defined at line 90 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.h
void designal ()
Defined at line 95 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.h
void InvokeCallback (std::unique_ptr<EventWaiter> event_waiter, fbl::RefPtr<Dispatcher> dispatcher_ref)
Defined at line 100 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.h
std::unique_ptr<EventWaiter> Cancel ()
Defined at line 105 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.h
void HandleEvent (std::unique_ptr<EventWaiter>event,async_dispatcher_t *dispatcher,async::WaitBase *wait,zx_status_tstatus,const zx_packet_signal_t *signal)
Defined at line 115 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.cc
zx_status_t BeginWaitWithRef (std::unique_ptr<EventWaiter>event,fbl::RefPtr<Dispatcher>dispatcher,async_dispatcher_t *async_dispatcher)
Begins waiting on the provided |async_dispatcher|.
This transfers ownership of |event| and the |dispatcher| reference to the async dispatcher.
The async dispatcher returns ownership when the handler is invoked.
Defined at line 140 of file ../../src/devices/bin/driver_runtime/dispatcher_internals.cc