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