MythTV  0.26-pre
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
MythSocketThread Class Reference

#include <mythsocketthread.h>

Inheritance diagram for MythSocketThread:
MThread

List of all members.

Public Member Functions

 MythSocketThread ()
virtual void run (void)
 Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
void StartReadyReadThread (void)
void WakeReadyReadThread (void) const
void ShutdownReadyReadThread (void)
void AddToReadyRead (MythSocket *sock)
void RemoveFromReadyRead (MythSocket *sock)

Private Member Functions

void ProcessAddRemoveQueues (void)
void ReadyToBeRead (MythSocket *sock)
void CloseReadyReadPipe (void) const

Private Attributes

bool m_readyread_run
QMutex m_readyread_lock
QWaitCondition m_readyread_wait
QWaitCondition m_readyread_started_wait
int m_readyread_pipe [2]
long m_readyread_pipe_flags [2]
QList< MythSocket * > m_readyread_list
QList< MythSocket * > m_readyread_dellist
QList< MythSocket * > m_readyread_addlist
QList< MythSocket * > m_readyread_downref_list

Static Private Attributes

static const uint kShortWait = 100

Detailed Description

Definition at line 14 of file mythsocketthread.h.


Constructor & Destructor Documentation

Definition at line 37 of file mythsocketthread.cpp.


Member Function Documentation

void MythSocketThread::run ( void  ) [virtual]

Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.

Note:
If you override this method you must call RunProlog before you do any work and RunEpilog before you exit the run method.

Reimplemented from MThread.

Definition at line 193 of file mythsocketthread.cpp.

Definition at line 84 of file mythsocketthread.cpp.

Referenced by AddToReadyRead().

Definition at line 57 of file mythsocketthread.cpp.

Referenced by ShutdownRRT().

Definition at line 97 of file mythsocketthread.cpp.

Referenced by MythSocket::MythSocket(), and MythSocket::setCallbacks().

Definition at line 117 of file mythsocketthread.cpp.

Referenced by MythSocket::DownRef(), and MythSocket::setCallbacks().

Definition at line 174 of file mythsocketthread.cpp.

Referenced by run().

Definition at line 156 of file mythsocketthread.cpp.

Referenced by run().

Definition at line 71 of file mythsocketthread.cpp.

Referenced by ShutdownReadyReadThread(), and WakeReadyReadThread().


Member Data Documentation

Definition at line 33 of file mythsocketthread.h.

Referenced by run(), ShutdownReadyReadThread(), and StartReadyReadThread().

QMutex MythSocketThread::m_readyread_lock [mutable, private]
QWaitCondition MythSocketThread::m_readyread_wait [mutable, private]

Definition at line 35 of file mythsocketthread.h.

Referenced by run(), and WakeReadyReadThread().

QWaitCondition MythSocketThread::m_readyread_started_wait [mutable, private]

Definition at line 36 of file mythsocketthread.h.

Referenced by run(), and StartReadyReadThread().

int MythSocketThread::m_readyread_pipe[2] [mutable, private]
long MythSocketThread::m_readyread_pipe_flags[2] [mutable, private]

Definition at line 39 of file mythsocketthread.h.

Referenced by CloseReadyReadPipe(), MythSocketThread(), run(), and StartReadyReadThread().

Definition at line 41 of file mythsocketthread.h.

Referenced by ProcessAddRemoveQueues(), and run().

Definition at line 42 of file mythsocketthread.h.

Referenced by ProcessAddRemoveQueues(), and RemoveFromReadyRead().

Definition at line 43 of file mythsocketthread.h.

Referenced by AddToReadyRead(), and ProcessAddRemoveQueues().

Definition at line 44 of file mythsocketthread.h.

Referenced by ProcessAddRemoveQueues(), and run().

const uint MythSocketThread::kShortWait = 100 [static, private]

Definition at line 46 of file mythsocketthread.h.

Referenced by run().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends