#include <system-unix.h>
Public Member Functions | |
| MythSystemIOHandler (bool read) | |
| ~MythSystemIOHandler () | |
| void | run (void) |
| Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. | |
| void | insert (int fd, QBuffer *buff) |
| void | remove (int fd) |
| void | wake () |
| MythSystemIOHandler (bool read) | |
| ~MythSystemIOHandler () | |
| void | run (void) |
| Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. | |
| void | insert (HANDLE h, QBuffer *buff) |
| void | remove (HANDLE h) |
| void | wake () |
Private Member Functions | |
| void | HandleRead (int fd, QBuffer *buff) |
| void | HandleWrite (int fd, QBuffer *buff) |
| void | BuildFDs () |
| bool | HandleRead (HANDLE h, QBuffer *buff) |
| bool | HandleWrite (HANDLE h, QBuffer *buff) |
Private Attributes | |
| QMutex | m_pWaitLock |
| QWaitCondition | m_pWait |
| QMutex | m_pLock |
| PMap_t | m_pMap |
| fd_set | m_fds |
| int | m_maxfd |
| bool | m_read |
| char | m_readbuf [65536] |
Definition at line 27 of file system-unix.h.
| MythSystemIOHandler::MythSystemIOHandler | ( | bool | read | ) |
Definition at line 78 of file system-unix.cpp.
| MythSystemIOHandler::~MythSystemIOHandler | ( | ) | [inline] |
Definition at line 31 of file system-unix.h.
| MythSystemIOHandler::MythSystemIOHandler | ( | bool | read | ) |
| MythSystemIOHandler::~MythSystemIOHandler | ( | ) | [inline] |
Definition at line 27 of file system-windows.h.
| void MythSystemIOHandler::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 86 of file system-unix.cpp.
| void MythSystemIOHandler::insert | ( | int | fd, | |
| QBuffer * | buff | |||
| ) |
Definition at line 211 of file system-unix.cpp.
Referenced by MythSystemManager::append().
| void MythSystemIOHandler::remove | ( | int | fd | ) |
Definition at line 220 of file system-unix.cpp.
Referenced by MythSystemSignalManager::run().
| void MythSystemIOHandler::wake | ( | ) |
Definition at line 235 of file system-unix.cpp.
Referenced by insert(), and MythSystemManager::run().
| void MythSystemIOHandler::HandleRead | ( | int | fd, | |
| QBuffer * | buff | |||
| ) | [private] |
Definition at line 155 of file system-unix.cpp.
| void MythSystemIOHandler::HandleWrite | ( | int | fd, | |
| QBuffer * | buff | |||
| ) | [private] |
Definition at line 183 of file system-unix.cpp.
Referenced by run().
| void MythSystemIOHandler::BuildFDs | ( | ) | [private] |
Definition at line 241 of file system-unix.cpp.
Referenced by HandleRead(), HandleWrite(), insert(), remove(), and run().
| void MythSystemIOHandler::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.
| void MythSystemIOHandler::insert | ( | HANDLE | h, | |
| QBuffer * | buff | |||
| ) |
Definition at line 193 of file system-windows.cpp.
| void MythSystemIOHandler::remove | ( | HANDLE | h | ) |
Definition at line 201 of file system-windows.cpp.
| void MythSystemIOHandler::wake | ( | ) |
Definition at line 135 of file system-windows.cpp.
Definition at line 168 of file system-windows.cpp.
QMutex MythSystemIOHandler::m_pWaitLock [private] |
Definition at line 43 of file system-unix.h.
QWaitCondition MythSystemIOHandler::m_pWait [private] |
Definition at line 44 of file system-unix.h.
QMutex MythSystemIOHandler::m_pLock [private] |
Definition at line 45 of file system-unix.h.
PMap_t MythSystemIOHandler::m_pMap [private] |
Definition at line 46 of file system-unix.h.
Referenced by BuildFDs(), HandleRead(), HandleWrite(), insert(), remove(), and run().
fd_set MythSystemIOHandler::m_fds [private] |
Definition at line 48 of file system-unix.h.
Referenced by BuildFDs(), and run().
int MythSystemIOHandler::m_maxfd [private] |
Definition at line 49 of file system-unix.h.
Referenced by BuildFDs(), and run().
bool MythSystemIOHandler::m_read [private] |
Definition at line 50 of file system-unix.h.
char MythSystemIOHandler::m_readbuf [private] |
Definition at line 51 of file system-unix.h.
Referenced by HandleRead(), and MythSystemIOHandler().
1.6.3