aboutsummaryrefslogtreecommitdiff
path: root/src/pathlocks.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-10-14 15:33:00 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-10-14 15:33:00 +0000
commitc190f051ac34b2df51402bf593150de97f491d86 (patch)
treeb08f3b05b2f39e1d1c48ce833711516671dc568a /src/pathlocks.hh
parent1d61e473c88568fae7ef5edebc77acd53e4126f9 (diff)
* Automatically recover the database in case of a crash.
Diffstat (limited to 'src/pathlocks.hh')
-rw-r--r--src/pathlocks.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pathlocks.hh b/src/pathlocks.hh
index 6c36b9b1d..ce61386d6 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: