The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
A base class for asynchronous wakeup events. More...
Public Member Functions | |
Wakeup_Event () | |
Event Constructor. More... | |
virtual void | observed_by (Event_Watcher *observer) |
Called by the Event_Watcher when this event is added to its list of observed events. More... | |
virtual void | ignored_by (Event_Watcher *observer) |
Called by the Event_Watcher when this event is removed from its list of observed events. More... | |
virtual | ~Wakeup_Event () |
Destructor deregisters from observers. More... | |
virtual OS_EVENT_TYPE | get_os_event () |
Get necessary information for the Event Watcher. More... | |
virtual void | reset () |
For pure notification events, reset the "signalled" status. More... | |
virtual bool | status () |
Query wether the event is in signalled state now. More... | |
Protected Attributes | |
OS_EVENT_TYPE | os_event |
bool | os_event_valid |
Private Attributes | |
std::set< class Event_Watcher * > | observers |
A list of all Event_Watcher instances that this Wakeup_Event is observed by (stored here for proper deregistering). More... | |
A base class for asynchronous wakeup events.
Wakeup_Event::Wakeup_Event | ( | ) |
Event Constructor.
The new event has invalid state.
|
virtual |
Destructor deregisters from observers.
|
virtual |
Called by the Event_Watcher when this event is added to its list of observed events.
|
virtual |
Called by the Event_Watcher when this event is removed from its list of observed events.
|
virtual |
Get necessary information for the Event Watcher.
Reimplemented in MHA_TCP::Timeout_Event.
|
virtual |
For pure notification events, reset the "signalled" status.
Reimplemented in MHA_TCP::Async_Notify.
|
virtual |
Query wether the event is in signalled state now.
|
private |
A list of all Event_Watcher instances that this Wakeup_Event is observed by (stored here for proper deregistering).
|
protected |
|
protected |