|
vdr 2.7.9
|
#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 2019 of file tools.c.
References AddDirectory(), DirectoryOk(), f, fileName, and LOCKFILENAME.
| cLockFile::~cLockFile | ( | ) |
| bool cLockFile::Lock | ( | int | WaitSeconds = 0 | ) |
Definition at line 2033 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 535 of file tools.h.
Referenced by cLockFile(), Lock(), and Unlock().
|
private |
Definition at line 534 of file tools.h.
Referenced by cLockFile(), Lock(), Unlock(), and ~cLockFile().