MythTV  master
Classes | Macros | Typedefs | Functions | Variables
mythsystemunix.cpp File Reference
#include "mythsystemlegacy.h"
#include "mythsystemunix.h"
#include "mythmiscutil.h"
#include "compat.h"
#include <cerrno>
#include <csignal>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fcntl.h>
#include <iostream>
#include <sys/select.h>
#include <sys/wait.h>
#include <unistd.h>
#include <QCoreApplication>
#include <QMutex>
#include <QMap>
#include <QString>
#include <QStringList>
#include "mythcorecontext.h"
#include "mythevent.h"
#include "exitcodes.h"
#include "mythlogging.h"
Include dependency graph for mythsystemunix.cpp:

Go to the source code of this file.

Classes

struct  FDType_t
 

Macros

#define CLOSE(x)
 
#define MAX_BUFLEN   1024
 

Typedefs

using FDMap_t = QMap< int, FDType_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) >= 0 ) { \
close((x)); \
fdLock.lock(); \
delete fdMap.value((x)); \
fdMap.remove((x)); \
fdLock.unlock(); \
(x) = -1; \
}
static FDMap_t fdMap

Definition at line 36 of file mythsystemunix.cpp.

◆ MAX_BUFLEN

#define MAX_BUFLEN   1024

Definition at line 742 of file mythsystemunix.cpp.

Typedef Documentation

◆ FDMap_t

using FDMap_t = QMap<int, FDType_t*>

Definition at line 51 of file mythsystemunix.cpp.

Function Documentation

◆ ShutdownMythSystemLegacy()

void ShutdownMythSystemLegacy ( void  )

Definition at line 66 of file mythsystemunix.cpp.

Variable Documentation

◆ run_system

bool run_system = true
static

◆ 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

◆ listLock

QMutex listLock
static

◆ fdMap

FDMap_t fdMap
static

◆ fdLock

QMutex fdLock
static