00001 #ifndef WIBBLE_SYS_LOCKFILE_H
00002 #define WIBBLE_SYS_LOCKFILE_H
00003
00004 #include <string>
00005
00006 namespace wibble {
00007 namespace sys {
00008 namespace fs {
00009
00016 struct Lockfile
00017 {
00018 std::string name;
00019 int fd;
00020
00027 Lockfile(const std::string& name, bool write = true);
00028 ~Lockfile();
00029
00030 private:
00031
00032 Lockfile(const Lockfile&);
00033 Lockfile& operator=(const Lockfile&);
00034 };
00035
00036 }
00037 }
00038 }
00039
00040
00041 #endif