MythTV  master
Classes | Macros | Typedefs | Functions | Variables
mythsystemwindows.cpp File Reference
#include "compat.h"
#include "mythsystemlegacy.h"
#include "mythsystemwindows.h"
#include <cerrno>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fcntl.h>
#include <unistd.h>
#include <QCoreApplication>
#include <QMutex>
#include <QMap>
#include <QString>
#include <QStringList>
#include "mythcorecontext.h"
#include "mythlogging.h"
#include "mythevent.h"
#include "exitcodes.h"
#include <windows.h>
#include <tchar.h>
Include dependency graph for mythsystemwindows.cpp:

Go to the source code of this file.

Classes

struct  FDType_t
 

Macros

#define CLOSE(x)
 
#define MAX_BUFLEN   1024
 

Typedefs

typedef QMap< HANDLE, FDType_t * > FDMap_t
 

Functions

void ShutdownMythSystemLegacy (void)
 

Variables

static bool run_system = true
 
static MythSystemLegacyManagermanager = nullptr
 
static MythSystemLegacySignalManagersmanager = nullptr
 
static MythSystemLegacyIOHandlerreadThread = nullptr
 
static MythSystemLegacyIOHandlerwriteThread = nullptr
 
static MSList_t msList
 
static QMutex listLock
 
static FDMap_t fdMap
 
static QMutex fdLock
 

Macro Definition Documentation

◆ CLOSE

#define CLOSE (   x)
Value:
if( (x) ) { \
CloseHandle((x)); \
fdLock.lock(); \
delete fdMap.value((x)); \
fdMap.remove((x)); \
fdLock.unlock(); \
(x) = nullptr; \
}
static FDMap_t fdMap

Definition at line 36 of file mythsystemwindows.cpp.

◆ MAX_BUFLEN

#define MAX_BUFLEN   1024

Definition at line 587 of file mythsystemwindows.cpp.

Typedef Documentation

◆ FDMap_t

typedef QMap<HANDLE, FDType_t*> FDMap_t

Definition at line 51 of file mythsystemwindows.cpp.

Function Documentation

◆ ShutdownMythSystemLegacy()

void ShutdownMythSystemLegacy ( void  )

Variable Documentation

◆ run_system

bool run_system = true
static

Definition at line 56 of file mythsystemwindows.cpp.

Referenced by ShutdownMythSystemLegacy().

◆ manager

MythSystemLegacyManager* manager = nullptr
static

◆ smanager

MythSystemLegacySignalManager* smanager = nullptr
static

◆ readThread

MythSystemLegacyIOHandler* readThread = nullptr
static

◆ writeThread

MythSystemLegacyIOHandler* writeThread = nullptr
static

◆ msList

MSList_t msList
static

Definition at line 61 of file mythsystemwindows.cpp.

◆ listLock

QMutex listLock
static

Definition at line 62 of file mythsystemwindows.cpp.

◆ fdMap

FDMap_t fdMap
static

◆ fdLock

QMutex fdLock
static