The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
MHA_TCP::Event_Watcher Class Reference

OS-independent event watcher, uses select on Unix and WaitForMultipleObjects on Windows. More...

Inheritance diagram for MHA_TCP::Event_Watcher:
Inheritance graph

Public Types

typedef std::set< Wakeup_Event * > Events
 
typedef std::set< Wakeup_Event * >::iterator iterator
 

Public Member Functions

void observe (Wakeup_Event *event)
 Add an event to this observer. More...
 
void ignore (Wakeup_Event *event)
 Remove an event from this observer. More...
 
std::set< Wakeup_Event * > wait ()
 \ Wait for some event to occur. More...
 
virtual ~Event_Watcher ()
 

Private Attributes

std::set< Wakeup_Event * > events
 The list of events to watch. More...
 

Detailed Description

OS-independent event watcher, uses select on Unix and WaitForMultipleObjects on Windows.

Member Typedef Documentation

◆ Events

◆ iterator

Constructor & Destructor Documentation

◆ ~Event_Watcher()

Event_Watcher::~Event_Watcher ( )
virtual

Member Function Documentation

◆ observe()

void Event_Watcher::observe ( Wakeup_Event event)

Add an event to this observer.

◆ ignore()

void Event_Watcher::ignore ( Wakeup_Event event)

Remove an event from this observer.

◆ wait()

std::set< Wakeup_Event * > Event_Watcher::wait ( )

\ Wait for some event to occur.

Return all events that are ready

Member Data Documentation

◆ events

std::set<Wakeup_Event*> MHA_TCP::Event_Watcher::events
private

The list of events to watch.


The documentation for this class was generated from the following files: