class SignalObserver
Defined at line 22 of file ../../zircon/kernel/object/include/object/signal_observer.h
SignalObserver implementations may register to be called when
a signal becomes active on a particular Dispatcher.
Implementations must be thread compatible, but need not be thread safe.
Public Methods
void OnMatch (zx_signals_t signals, OwnedWaitQueue * queue_to_own)
Called when the set of active signals matches an expected set.
At the time this is call, it is safe to delete this object: the
caller will not interact with it again.
WARNING: This is called under Dispatcher's lock
void OnCancel (zx_signals_t signals)
Called when the registered handle (which refers to a handle to the
Dispatcher object) is being destroyed/"closed"/transferred. (The
object itself may also be destroyed shortly afterwards.)
At the time this is call, it is safe to delete this object: the
caller will not interact with it again.
WARNING: This is called under Dispatcher's lock
void SignalObserver ()
Defined at line 24 of file ../../zircon/kernel/object/include/object/signal_observer.h
bool MatchesKey (const void * port, uint64_t key)
Determine if this observer matches the given port and key.
If true, this object will be removed.
WARNING: This is called under Dispatcher's lock.
Defined at line 49 of file ../../zircon/kernel/object/include/object/signal_observer.h
Protected Methods
void ~SignalObserver ()
Defined at line 52 of file ../../zircon/kernel/object/include/object/signal_observer.h
Friends
class Dispatcher