#include <threaded_event_handler.hh>
Inheritance diagram for mpcl::event::TThreadedEventHandler< TEvent >:
Public Methods | |
TThreadedEventHandler (void) | |
Builds a new instance. | |
TEvent | pop (void) |
void | push (const TEvent &rktSOURCE_EVENT) |
bool | isEmpty (void) const |
Definition at line 50 of file threaded_event_handler.hh.
|
Returns true if there is no more events. It is mutex protected.
Reimplemented from mpcl::event::TEventHandler< TEvent >. Definition at line 115 of file threaded_event_handler.hh. References mpcl::system::TMutex::lock(), and mpcl::system::TMutex::unlock(). |
|
Extracts next event (and removes from the queue). It is mutex protected.
Reimplemented from mpcl::event::TEventHandler< TEvent >. Definition at line 81 of file threaded_event_handler.hh. References mpcl::system::TMutex::lock(), and mpcl::system::TMutex::unlock(). |
|
Pushes an event into the queue. It is mutex protected.
Reimplemented from mpcl::event::TEventHandler< TEvent >. Definition at line 96 of file threaded_event_handler.hh. References mpcl::system::TMutex::lock(), and mpcl::system::TMutex::unlock(). |