MythSystemIOHandler Class Reference

#include <system-unix.h>

Inheritance diagram for MythSystemIOHandler:
MThread MThread

List of all members.

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]

Detailed Description

Definition at line 27 of file system-unix.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void MythSystemIOHandler::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 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.

Referenced by remove(), and run().

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.

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.

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 (  ) 
bool MythSystemIOHandler::HandleRead ( HANDLE  h,
QBuffer *  buff 
) [private]

Definition at line 135 of file system-windows.cpp.

bool MythSystemIOHandler::HandleWrite ( HANDLE  h,
QBuffer *  buff 
) [private]

Definition at line 168 of file system-windows.cpp.


Member Data Documentation

Definition at line 43 of file system-unix.h.

Referenced by run(), and wake().

QWaitCondition MythSystemIOHandler::m_pWait [private]

Definition at line 44 of file system-unix.h.

Referenced by run(), and wake().

QMutex MythSystemIOHandler::m_pLock [private]

Definition at line 45 of file system-unix.h.

Referenced by insert(), remove(), and run().

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().

Definition at line 49 of file system-unix.h.

Referenced by BuildFDs(), and run().

Definition at line 50 of file system-unix.h.

Referenced by remove(), and run().

Definition at line 51 of file system-unix.h.

Referenced by HandleRead(), and MythSystemIOHandler().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri May 25 06:42:15 2012 for MythTV by  doxygen 1.6.3