vdr 2.7.4
cLockFile Class Reference

#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
 

Detailed Description

Definition at line 519 of file tools.h.

Constructor & Destructor Documentation

◆ cLockFile()

cLockFile::cLockFile ( const char * Directory)

Definition at line 2000 of file tools.c.

References AddDirectory(), DirectoryOk(), f, fileName, and LOCKFILENAME.

◆ ~cLockFile()

cLockFile::~cLockFile ( )

Definition at line 2008 of file tools.c.

References fileName, and Unlock().

Member Function Documentation

◆ Lock()

bool cLockFile::Lock ( int WaitSeconds = 0)

◆ Unlock()

void cLockFile::Unlock ( void )

Definition at line 2054 of file tools.c.

References f, and fileName.

Referenced by ~cLockFile().

Member Data Documentation

◆ f

int cLockFile::f
private

Definition at line 522 of file tools.h.

Referenced by cLockFile(), Lock(), and Unlock().

◆ fileName

char* cLockFile::fileName
private

Definition at line 521 of file tools.h.

Referenced by cLockFile(), Lock(), Unlock(), and ~cLockFile().


The documentation for this class was generated from the following files: