class EventWaiter
Defined at line 112 of file ../../src/devices/bin/driver_runtime/dispatcher.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 118 of file ../../src/devices/bin/driver_runtime/dispatcher.h
bool signaled ()
Defined at line 133 of file ../../src/devices/bin/driver_runtime/dispatcher.h
void signal ()
Defined at line 135 of file ../../src/devices/bin/driver_runtime/dispatcher.h
void designal ()
Defined at line 140 of file ../../src/devices/bin/driver_runtime/dispatcher.h
void InvokeCallback (std::unique_ptr<EventWaiter> event_waiter, fbl::RefPtr<Dispatcher> dispatcher_ref)
Defined at line 145 of file ../../src/devices/bin/driver_runtime/dispatcher.h
std::unique_ptr<EventWaiter> Cancel ()
Defined at line 150 of file ../../src/devices/bin/driver_runtime/dispatcher.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 1427 of file ../../src/devices/bin/driver_runtime/dispatcher.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 1452 of file ../../src/devices/bin/driver_runtime/dispatcher.cc