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