|
vdr-plugin-softhddevice-drm-gles 1.6.8-daba64b
|
Event handler thread. More...
#include <statemachine.h>
Public Member Functions | |
| cEventHandler (cStateMachine *) | |
| Create and start the event handler thread. | |
| ~cEventHandler (void) | |
| Stop and delete the event handler thread. | |
| void | AddEvent (Event) |
| Add an event to the queue. | |
Protected Member Functions | |
| void | Action (void) |
| Periodically send events in the queue to the final event receiver/handler. | |
Private Attributes | |
| cStateMachine * | m_pStateMachine |
| pointer to state machine | |
| std::mutex | m_mutex |
| queue mutex | |
| std::vector< Event > | m_eventQueue |
| event fifo queue | |
Event handler thread.
Queues events and sends them to the state machine cStateMachine as the final event receiver
Definition at line 163 of file statemachine.h.
| cEventHandler::cEventHandler | ( | cStateMachine * | statemachine | ) |
Create and start the event handler thread.
| statemachine | pointer to the cStateMachine object as the final event receiver |
Definition at line 276 of file statemachine.cpp.
| cEventHandler::~cEventHandler | ( | void | ) |
Stop and delete the event handler thread.
Definition at line 286 of file statemachine.cpp.
Periodically send events in the queue to the final event receiver/handler.
Definition at line 305 of file statemachine.cpp.
References LOGDEBUG, m_eventQueue, m_mutex, m_pStateMachine, and cStateMachine::OnEventReceived().
Add an event to the queue.
| event | event, which should be added to the queue |
Definition at line 296 of file statemachine.cpp.
References m_eventQueue, and m_mutex.
Referenced by cSoftHdDevice::SetDisplayMode().
|
private |
event fifo queue
Definition at line 175 of file statemachine.h.
Referenced by Action(), and AddEvent().
|
private |
|
private |