summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-30 10:38:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-30 10:38:06 +0200
commita0d04288c6cf76294772ec000a90f423dab3edbe (patch)
tree2b0beeff97cb7140b884d0eb11ba509d057f0345 /tools.h
parent0dc2e82f9a48909847525a969bdc04e9aaa9cc9f (diff)
downloadvdr-a0d04288c6cf76294772ec000a90f423dab3edbe.tar.gz
vdr-a0d04288c6cf76294772ec000a90f423dab3edbe.tar.bz2
Lock file for accessing the video directory
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index cc67a806..843cbf1d 100644
--- a/tools.h
+++ b/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;