|
vdr 2.6.4
|
#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 2013 of file tools.c.
References AddDirectory(), DirectoryOk(), and LOCKFILENAME.
| bool cLockFile::Lock | ( | int | WaitSeconds = 0 | ) |
Definition at line 2027 of file tools.c.
References esyslog, LOCKFILESTALETIME, LOG_ERROR_STR, and cCondWait::SleepMs().
Referenced by cRemoveDeletedRecordingsThread::Action(), and AssertFreeDiskSpace().