vdr-plugin-softhddevice-drm-gles 1.6.7
cEventHandler Class Reference

Event handler thread. More...

#include <softhddevice.h>

Public Member Functions

 cEventHandler (cSoftHdDevice *)
 Create and start the event handler thread.
 
virtual ~cEventHandler (void)
 Stop and delete the event handler thread.
 
void AddEvent (Event)
 Add an event to the queue.
 

Protected Member Functions

virtual void Action (void) override
 Periodically send events in the queue to the final event receiver/handler.
 

Private Attributes

cSoftHdDevicem_pDevice
 pointer to device
 
std::mutex m_mutex
 queue mutex
 
std::vector< Eventm_eventQueue
 event fifo queue
 
IEventReceiverm_pEventReceiver
 pointer to event receiver
 

Detailed Description

Event handler thread.

Queues events and sends them to cSoftHdDevice as the final event receiver

Definition at line 118 of file softhddevice.h.

Constructor & Destructor Documentation

◆ cEventHandler()

cEventHandler::cEventHandler ( cSoftHdDevice device)

Create and start the event handler thread.

Definition at line 1901 of file softhddevice.cpp.

◆ ~cEventHandler()

cEventHandler::~cEventHandler ( void  )
virtual

Stop and delete the event handler thread.

Definition at line 1912 of file softhddevice.cpp.

Member Function Documentation

◆ Action()

void cEventHandler::Action ( void  )
overrideprotectedvirtual

Periodically send events in the queue to the final event receiver/handler.

Definition at line 1920 of file softhddevice.cpp.

References LOGDEBUG, m_eventQueue, m_mutex, m_pEventReceiver, and IEventReceiver::OnEventReceived().

◆ AddEvent()

void cEventHandler::AddEvent ( Event  event)

Add an event to the queue.

Definition at line 1944 of file softhddevice.cpp.

References m_eventQueue, and m_mutex.

Referenced by cSoftHdDevice::SetDisplayMode().

Member Data Documentation

◆ m_eventQueue

std::vector<Event> cEventHandler::m_eventQueue
private

event fifo queue

Definition at line 129 of file softhddevice.h.

Referenced by Action(), and AddEvent().

◆ m_mutex

std::mutex cEventHandler::m_mutex
private

queue mutex

Definition at line 128 of file softhddevice.h.

Referenced by Action(), and AddEvent().

◆ m_pDevice

cSoftHdDevice* cEventHandler::m_pDevice
private

pointer to device

Definition at line 127 of file softhddevice.h.

◆ m_pEventReceiver

IEventReceiver* cEventHandler::m_pEventReceiver
private

pointer to event receiver

Definition at line 130 of file softhddevice.h.

Referenced by Action().


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