vdr 2.6.1
|
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) |
virtual void | Action (void)=0 |
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 1391 of file recording.c.
cVideoDirectoryScannerThread::cVideoDirectoryScannerThread | ( | cRecordings * | Recordings, |
cRecordings * | DeletedRecordings | ||
) |
Definition at line 1405 of file recording.c.
References count, deletedRecordings, initial, and recordings.
cVideoDirectoryScannerThread::~cVideoDirectoryScannerThread | ( | ) |
Definition at line 1414 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 1419 of file recording.c.
References cListBase::Clear(), count, cListBase::Count(), deletedRecordings, initial, cListBase::Lock(), cVideoDirectory::Name(), recordings, cStateKey::Remove(), and ScanVideoDir().
|
private |
Definition at line 1432 of file recording.c.
References cRecordings::Add(), AddDirectory(), count, cListBase::Count(), cListBase::Del(), deletedRecordings, DELEXT, dsyslog, endswith(), cIoThrottle::Engaged(), cRecording::FileName(), cRecording::FileSizeMB(), cList< T >::First(), cRecordings::GetByName(), initial, cRecording::IsOnVideoDirectoryFileSystem(), isyslog, cListBase::Lock(), MAX_LINK_LEVEL, cRecording::Name(), cList< T >::Next(), cReadDir::Next(), cRecording::NumFrames(), RECEXT, recordings, cStateKey::Remove(), cThread::Running(), ScanVideoDir(), cRecording::SetDeleted(), and cCondWait::SleepMs().
Referenced by Action(), and ScanVideoDir().
|
private |
Definition at line 1395 of file recording.c.
Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().
|
private |
Definition at line 1394 of file recording.c.
Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().
|
private |
Definition at line 1396 of file recording.c.
Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().
|
private |
Definition at line 1393 of file recording.c.
Referenced by Action(), cVideoDirectoryScannerThread(), and ScanVideoDir().