MythTV  master
Classes | 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
 

Typedefs

using __syscall_slong_t = long int
 
using FDMap_t = QMap< int, FDType_t * >
 

Functions

static void CLOSE (int &fd)
 
void ShutdownMythSystemLegacy (void)
 

Variables

static constexpr __syscall_slong_t kIOHandlerInterval {static_cast<__syscall_slong_t>(10)*1000*1000}
 
static constexpr __syscall_slong_t kSignalHandlerInterval {static_cast<__syscall_slong_t>(50)*1000*1000}
 
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
 

Typedef Documentation

◆ __syscall_slong_t

using __syscall_slong_t = long int

Definition at line 36 of file mythsystemunix.cpp.

◆ FDMap_t

using FDMap_t = QMap<int, FDType_t*>

Definition at line 48 of file mythsystemunix.cpp.

Function Documentation

◆ CLOSE()

static void CLOSE ( int &  fd)
inlinestatic

◆ ShutdownMythSystemLegacy()

void ShutdownMythSystemLegacy ( void  )

Definition at line 75 of file mythsystemunix.cpp.

Variable Documentation

◆ kIOHandlerInterval

constexpr __syscall_slong_t kIOHandlerInterval {static_cast<__syscall_slong_t>(10)*1000*1000}
staticconstexpr

Definition at line 39 of file mythsystemunix.cpp.

Referenced by MythSystemLegacyIOHandler::run().

◆ kSignalHandlerInterval

constexpr __syscall_slong_t kSignalHandlerInterval {static_cast<__syscall_slong_t>(50)*1000*1000}
staticconstexpr

Definition at line 41 of file mythsystemunix.cpp.

Referenced by MythSystemLegacySignalManager::run().

◆ 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