CPPMyth
Library to interoperate with MythTV server
Loading...
Searching...
No Matches
Myth::SubscriptionHandlerThread Class Reference
Inheritance diagram for Myth::SubscriptionHandlerThread:
Collaboration diagram for Myth::SubscriptionHandlerThread:

Public Member Functions

 SubscriptionHandlerThread (EventSubscriber *handle, unsigned subid)
EventSubscriberGetHandle ()
bool IsRunning ()
void PostMessage (const EventMessagePtr &msg)

Private Member Functions

bool Start ()
void Stop ()
void * process ()

Private Attributes

EventSubscriberm_handle
unsigned m_subId
OS::Mutex m_mutex
OS::Event m_queueContent
std::list< EventMessagePtr > m_msgQueue

Detailed Description

Definition at line 58 of file mytheventhandler.cpp.

Constructor & Destructor Documentation

◆ SubscriptionHandlerThread()

SubscriptionHandlerThread::SubscriptionHandlerThread ( EventSubscriber * handle,
unsigned subid )

Definition at line 80 of file mytheventhandler.cpp.

◆ ~SubscriptionHandlerThread()

SubscriptionHandlerThread::~SubscriptionHandlerThread ( )
virtual

Definition at line 94 of file mytheventhandler.cpp.

Member Function Documentation

◆ GetHandle()

EventSubscriber * Myth::SubscriptionHandlerThread::GetHandle ( )
inline

Definition at line 63 of file mytheventhandler.cpp.

◆ IsRunning()

bool Myth::SubscriptionHandlerThread::IsRunning ( )
inline

Definition at line 64 of file mytheventhandler.cpp.

◆ PostMessage()

void SubscriptionHandlerThread::PostMessage ( const EventMessagePtr & msg)

Definition at line 121 of file mytheventhandler.cpp.

◆ process()

void * SubscriptionHandlerThread::process ( )
private

Definition at line 129 of file mytheventhandler.cpp.

◆ Start()

bool SubscriptionHandlerThread::Start ( )
private

Definition at line 100 of file mytheventhandler.cpp.

◆ Stop()

void SubscriptionHandlerThread::Stop ( )
private

Definition at line 107 of file mytheventhandler.cpp.

Field Documentation

◆ m_handle

EventSubscriber* Myth::SubscriptionHandlerThread::m_handle
private

Definition at line 68 of file mytheventhandler.cpp.

◆ m_msgQueue

std::list<EventMessagePtr> Myth::SubscriptionHandlerThread::m_msgQueue
private

Definition at line 72 of file mytheventhandler.cpp.

◆ m_mutex

OS::Mutex Myth::SubscriptionHandlerThread::m_mutex
mutableprivate

Definition at line 70 of file mytheventhandler.cpp.

◆ m_queueContent

OS::Event Myth::SubscriptionHandlerThread::m_queueContent
private

Definition at line 71 of file mytheventhandler.cpp.

◆ m_subId

unsigned Myth::SubscriptionHandlerThread::m_subId
private

Definition at line 69 of file mytheventhandler.cpp.


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