vdr 2.7.4
|
Public Member Functions | |
cVideoDirectoryScannerThread (cRecordings *Recordings, cRecordings *DeletedRecordings) | |
~cVideoDirectoryScannerThread () | |
![]() | |
cThread (const char *Description=NULL, bool LowPriority=false) | |
virtual | ~cThread () |
void | SetDescription (const char *Description,...) __attribute__((format(printf |
void bool | Start (void) |
bool | Active (void) |
Protected Member Functions | |
virtual void | Action (void) |
![]() | |
void | SetPriority (int Priority) |
void | SetIOPriority (int Priority) |
void | Lock (void) |
void | Unlock (void) |
bool | Running (void) |
void | Cancel (int WaitSeconds=0) |
Private Member Functions | |
void | ScanVideoDir (const char *DirName, int LinkLevel=0, int DirLevel=0) |
Private Attributes | |
cRecordings * | recordings |
cRecordings * | deletedRecordings |
int | count |
bool | initial |
Additional Inherited Members | |
![]() | |
static tThreadId | ThreadId (void) |
static tThreadId | IsMainThread (void) |
static void | SetMainThreadId (void) |
Definition at line 1499 of file recording.c.
cVideoDirectoryScannerThread::cVideoDirectoryScannerThread | ( | cRecordings * | Recordings, |
cRecordings * | DeletedRecordings ) |
Definition at line 1513 of file recording.c.
References count, cThread::cThread(), deletedRecordings, initial, and recordings.
cVideoDirectoryScannerThread::~cVideoDirectoryScannerThread | ( | ) |
Definition at line 1522 of file recording.c.
References cThread::Cancel().
|
protectedvirtual |
A derived cThread class must implement the code it wants to execute as a separate thread in this function.
If this is a loop, it must check Running() repeatedly to see whether it's time to stop.
Implements cThread.
Definition at line 1527 of file recording.c.
References count, deletedRecordings, initial, cVideoDirectory::Name(), recordings, cStateKey::Remove(), and ScanVideoDir().
|
private |
Definition at line 1540 of file recording.c.
References cRecordings::Add(), AddDirectory(), count, deletedRecordings, DELEXT, dsyslog, endswith(), cIoThrottle::Engaged(), cRecording::FileName(), cRecording::FileSizeMB(), cRecordings::GetByName(), initial, cRecording::IsOnVideoDirectoryFileSystem(), isyslog, cListBase::Lock(), MAX_LINK_LEVEL, cRecording::Name(), cReadDir::Next(), cRecording::NumFrames(), cRecording::ReadInfo(), RECEXT, recordings, cStateKey::Remove(), cThread::Running(), ScanVideoDir(), cRecording::SetDeleted(), and cCondWait::SleepMs().
Referenced by Action(), and ScanVideoDir().
|
private |
Definition at line 1503 of file recording.c.
Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().
|
private |
Definition at line 1502 of file recording.c.
Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().
|
private |
Definition at line 1504 of file recording.c.
Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().
|
private |
Definition at line 1501 of file recording.c.
Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().