class WakeupEvent
Defined at line 16 of file ../../src/media/audio/audio_core/wakeup_event.h
WakeupEvent is used to implement a style of auto-reset event based on a zircon event object.
Public Members
static const size_t MAX_HANDLER_CAPTURE_SIZE
Public Methods
void WakeupEvent ()
Defined at line 25 of file ../../src/media/audio/audio_core/wakeup_event.cc
zx_status_t Activate (async_dispatcher_t * dispatcher, ProcessHandler process_handler)
Activation simply requires a user to provide a valid async dispatcher and a valid
ProcessHandler. The event handle itself will be allocated internally.
Requires that |dispatcher| is a single-threaded dispatcher and this method is called on that
dispatch thread.
Defined at line 31 of file ../../src/media/audio/audio_core/wakeup_event.cc
zx_status_t Deactivate ()
Activation simply requires a user to provide a valid async dispatcher and a valid
ProcessHandler. The event handle itself will be allocated internally.
Requires that the WakeupEvent was previously Activated with a single-threaded dispatcher and
that this method is called on the dispatch thread.
Defined at line 36 of file ../../src/media/audio/audio_core/wakeup_event.cc
zx_status_t Signal ()
Signaling a WakupEvent to fire is an operation that may be called from any thread. Signaling a
WakeupEvent multiple times before it gets dispatched will result in only a single dispatch
event. A WakeupEvent becomes un-signaled just before the registered ProcessHandler is called;
it may become resignaled during the dispatch operation itself resulting in another call to the
ProcessHandler (provided that the event does not become Deactivated).
Defined at line 41 of file ../../src/media/audio/audio_core/wakeup_event.cc