vdr
2.0.2
|
#include <tools.h>
Public Member Functions | |
cLockFile (const char *Directory) | |
~cLockFile () | |
bool | Lock (int WaitSeconds=0) |
void | Unlock (void) |
Private Attributes | |
char * | fileName |
int | f |
cLockFile::cLockFile | ( | const char * | Directory | ) |
Definition at line 1829 of file tools.c.
References AddDirectory(), DirectoryOk(), f, fileName, and LOCKFILENAME.
cLockFile::~cLockFile | ( | ) |
bool cLockFile::Lock | ( | int | WaitSeconds = 0 | ) |
Definition at line 1843 of file tools.c.
References esyslog, f, fileName, LOCKFILESTALETIME, LOG_ERROR_STR, and cCondWait::SleepMs().
Referenced by cRemoveDeletedRecordingsThread::Action(), and AssertFreeDiskSpace().
void cLockFile::Unlock | ( | void | ) |
|
private |
Definition at line 436 of file tools.h.
Referenced by cLockFile(), Lock(), and Unlock().
|
private |
Definition at line 435 of file tools.h.
Referenced by cLockFile(), Lock(), Unlock(), and ~cLockFile().