mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Lock file for accessing the video directory
This commit is contained in:
13
tools.h
13
tools.h
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: tools.h 1.35 2001/09/22 12:12:55 kls Exp $
|
||||
* $Id: tools.h 1.36 2001/09/30 10:20:59 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __TOOLS_H
|
||||
@@ -97,6 +97,17 @@ public:
|
||||
bool Close(void);
|
||||
};
|
||||
|
||||
class cLockFile {
|
||||
private:
|
||||
char *fileName;
|
||||
int f;
|
||||
public:
|
||||
cLockFile(const char *Directory);
|
||||
~cLockFile();
|
||||
bool Lock(int WaitSeconds = 0);
|
||||
void Unlock(void);
|
||||
};
|
||||
|
||||
class cListObject {
|
||||
private:
|
||||
cListObject *prev, *next;
|
||||
|
||||
Reference in New Issue
Block a user