From c190f051ac34b2df51402bf593150de97f491d86 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Oct 2003 15:33:00 +0000 Subject: * Automatically recover the database in case of a crash. --- src/pathlocks.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/pathlocks.hh') diff --git a/src/pathlocks.hh b/src/pathlocks.hh index 6c36b9b1d17f..ce61386d6df0 100644 --- a/src/pathlocks.hh +++ b/src/pathlocks.hh @@ -4,6 +4,11 @@ #include "util.hh" +typedef enum LockType { ltRead, ltWrite, ltNone }; + +bool lockFile(int fd, LockType lockType, bool wait); + + class PathLocks { private: -- cgit 1.4.1