MythTV
master
|
#include <algorithm>
#include <chrono>
#include <iostream>
#include <list>
#include <thread>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <QStringList>
#include <QDateTime>
#include <QString>
#include <QMutex>
#include <QFile>
#include <QMap>
#include "libmyth/mythcontext.h"
#include "libmythbase/compat.h"
#include "libmythbase/exitcodes.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythmiscutil.h"
#include "libmythbase/mythsystemlegacy.h"
#include "libmythbase/remoteutil.h"
#include "libmythbase/storagegroup.h"
#include "libmythtv/cardutil.h"
#include "libmythtv/jobqueue.h"
#include "libmythtv/mythsystemevent.h"
#include "libmythtv/recordinginfo.h"
#include "libmythtv/recordingrule.h"
#include "libmythtv/scheduledrecording.h"
#include "libmythtv/tv_rec.h"
#include "encoderlink.h"
#include "mainserver.h"
#include "recordingextender.h"
#include "scheduler.h"
Go to the source code of this file.
Macros | |
#define | LOC QString("Scheduler: ") |
#define | LOC_WARN QString("Scheduler, Warning: ") |
#define | LOC_ERR QString("Scheduler, Error: ") |
Functions | |
static bool | Recording (const RecordingInfo *p) |
static bool | comp_overlap (RecordingInfo *a, RecordingInfo *b) |
static bool | comp_redundant (RecordingInfo *a, RecordingInfo *b) |
static bool | comp_recstart (RecordingInfo *a, RecordingInfo *b) |
static bool | comp_priority (RecordingInfo *a, RecordingInfo *b) |
static bool | comp_retry (RecordingInfo *a, RecordingInfo *b) |
static void | erase_nulls (RecList &reclist) |
static bool | comp_storage_combination (FileSystemInfo *a, FileSystemInfo *b) |
static bool | comp_storage_perc_free_space (FileSystemInfo *a, FileSystemInfo *b) |
static bool | comp_storage_free_space (FileSystemInfo *a, FileSystemInfo *b) |
static bool | comp_storage_disk_io (FileSystemInfo *a, FileSystemInfo *b) |
Variables | |
static constexpr int64_t | kProgramInUseInterval {61LL * 60} |
bool | debugConflicts = false |
static QString | progdupinit |
static QString | progfindid |
#define LOC QString("Scheduler: ") |
Definition at line 54 of file scheduler.cpp.
#define LOC_WARN QString("Scheduler, Warning: ") |
Definition at line 55 of file scheduler.cpp.
#define LOC_ERR QString("Scheduler, Error: ") |
Definition at line 56 of file scheduler.cpp.
|
inlinestatic |
Definition at line 221 of file scheduler.cpp.
Referenced by V2Program::Copy(), Scheduler::FindNextConflict(), Scheduler::PrintList(), and Scheduler::PruneRedundants().
|
static |
Definition at line 230 of file scheduler.cpp.
Referenced by Scheduler::FillRecordList().
|
static |
Definition at line 272 of file scheduler.cpp.
Referenced by Scheduler::FillRecordList().
|
static |
Definition at line 295 of file scheduler.cpp.
Referenced by Scheduler::FillRecordList().
|
static |
Definition at line 312 of file scheduler.cpp.
Referenced by Scheduler::FillRecordList().
|
static |
Definition at line 378 of file scheduler.cpp.
Referenced by Scheduler::SchedNewRetryPass().
|
static |
Definition at line 979 of file scheduler.cpp.
Referenced by Scheduler::PruneOverlaps(), and Scheduler::PruneRedundants().
|
static |
Definition at line 5088 of file scheduler.cpp.
Referenced by Scheduler::FillRecordingDir().
|
static |
Definition at line 5125 of file scheduler.cpp.
Referenced by Scheduler::FillRecordingDir().
|
static |
Definition at line 5141 of file scheduler.cpp.
Referenced by Scheduler::FillRecordingDir().
|
static |
Definition at line 5148 of file scheduler.cpp.
Referenced by Scheduler::FillRecordingDir().
|
staticconstexpr |
Definition at line 58 of file scheduler.cpp.
Referenced by Scheduler::PutInactiveSlavesToSleep().
Definition at line 60 of file scheduler.cpp.
Referenced by Scheduler::FindNextConflict(), and Scheduler::Scheduler().
|
static |
Definition at line 4011 of file scheduler.cpp.
Referenced by Scheduler::UpdateMatches().
|
static |
Definition at line 4020 of file scheduler.cpp.
Referenced by Scheduler::UpdateMatches().