|
MythTV
0.26-pre
|
#include <mythsocketthread.h>
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 |
Definition at line 14 of file mythsocketthread.h.
Definition at line 37 of file mythsocketthread.cpp.
| void MythSocketThread::run | ( | void | ) | [virtual] |
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
Reimplemented from MThread.
Definition at line 193 of file mythsocketthread.cpp.
Definition at line 84 of file mythsocketthread.cpp.
Referenced by AddToReadyRead().
| void MythSocketThread::WakeReadyReadThread | ( | void | ) | const |
Definition at line 126 of file mythsocketthread.cpp.
Referenced by AddToReadyRead(), MythSocket::connect(), MythSocket::Lock(), MythSocket::readStringList(), RemoveFromReadyRead(), ShutdownReadyReadThread(), MythSocket::TryLock(), and MythSocket::Unlock().
Definition at line 57 of file mythsocketthread.cpp.
Referenced by ShutdownRRT().
| void MythSocketThread::AddToReadyRead | ( | MythSocket * | sock | ) |
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().
| void MythSocketThread::ProcessAddRemoveQueues | ( | void | ) | [private] |
Definition at line 174 of file mythsocketthread.cpp.
Referenced by run().
| void MythSocketThread::ReadyToBeRead | ( | MythSocket * | sock | ) | [private] |
Definition at line 156 of file mythsocketthread.cpp.
Referenced by run().
| void MythSocketThread::CloseReadyReadPipe | ( | void | ) | const [private] |
Definition at line 71 of file mythsocketthread.cpp.
Referenced by ShutdownReadyReadThread(), and WakeReadyReadThread().
bool MythSocketThread::m_readyread_run [private] |
Definition at line 33 of file mythsocketthread.h.
Referenced by run(), ShutdownReadyReadThread(), and StartReadyReadThread().
QMutex MythSocketThread::m_readyread_lock [mutable, private] |
Definition at line 34 of file mythsocketthread.h.
Referenced by AddToReadyRead(), RemoveFromReadyRead(), run(), ShutdownReadyReadThread(), StartReadyReadThread(), and WakeReadyReadThread().
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] |
Definition at line 38 of file mythsocketthread.h.
Referenced by CloseReadyReadPipe(), MythSocketThread(), run(), StartReadyReadThread(), and WakeReadyReadThread().
long MythSocketThread::m_readyread_pipe_flags[2] [mutable, private] |
Definition at line 39 of file mythsocketthread.h.
Referenced by CloseReadyReadPipe(), MythSocketThread(), run(), and StartReadyReadThread().
QList<MythSocket*> MythSocketThread::m_readyread_list [private] |
Definition at line 41 of file mythsocketthread.h.
Referenced by ProcessAddRemoveQueues(), and run().
QList<MythSocket*> MythSocketThread::m_readyread_dellist [private] |
Definition at line 42 of file mythsocketthread.h.
Referenced by ProcessAddRemoveQueues(), and RemoveFromReadyRead().
QList<MythSocket*> MythSocketThread::m_readyread_addlist [private] |
Definition at line 43 of file mythsocketthread.h.
Referenced by AddToReadyRead(), and ProcessAddRemoveQueues().
QList<MythSocket*> MythSocketThread::m_readyread_downref_list [private] |
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().
1.7.6.1