Go to the documentation of this file.
3 #ifndef _MYTHSYSTEM_WINDOWS_H_
4 #define _MYTHSYSTEM_WINDOWS_H_
9 #include <QWaitCondition>
23 using MSMap_t = QMap<HANDLE, MythSystemLegacyWindows *>;
24 using PMap_t = QMap<HANDLE, QBuffer *>;
25 using MSList_t = QList<MythSystemLegacyWindows *>;
32 void run(
void)
override;
34 void insert(HANDLE h, QBuffer *buff);
58 void run(
void)
override;
80 :
MThread(
"SystemSignalManager") {}
82 void run(
void)
override;
96 void Manage(
void)
override;
99 void Signal(
int sig)
override;
102 bool ParseShell(
const QString &cmd, QString &abscmd,
103 QStringList &
args)
override;
110 HANDLE m_child {
nullptr};
116 #endif // _MYTHSYSTEM_WINDOWS_H_
~MythSystemLegacyIOHandler()
void run(void) override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
bool wait(std::chrono::milliseconds time=std::chrono::milliseconds::max())
Wait for the MThread to exit, with a maximum timeout.
def read(device=None, features=[])
std::chrono::time_point< SystemClock > SystemTime
virtual void Term(bool force=false)=0
~MythSystemLegacySignalManager()
MythSystemLegacySignalManager()
QMap< pid_t, QPointer< MythSystemLegacyUnix > > MSMap_t
void run(void) override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
virtual bool ParseShell(const QString &cmd, QString &abscmd, QStringList &args)=0
MythSystemLegacyManager()
QMap< int, QBuffer * > PMap_t
QList< QPointer< MythSystemLegacyUnix > > MSList_t
virtual void Signal(int sig)=0
MythSystemLegacyIOHandler(bool read)
~MythSystemLegacyManager() override
void HandleWrite(int fd, QBuffer *buff)
void append(MythSystemLegacyUnix *ms)
virtual void Fork(std::chrono::seconds timeout)=0
std::array< char, 65536 > m_readbuf
This is a wrapper around QThread that does several additional things.
virtual void JumpAbort(void)=0
void insert(int fd, QBuffer *buff)
void run(void) override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
virtual void Manage(void)=0
void HandleRead(int fd, QBuffer *buff)