wibble
0.1.28
|
00001 #ifndef WIBBLE_SYS_LOCKFILE_H 00002 #define WIBBLE_SYS_LOCKFILE_H 00003 00004 #include <wibble/sys/macros.h> 00005 #include <string> 00006 00007 namespace wibble { 00008 namespace sys { 00009 namespace fs { 00010 00017 struct Lockfile 00018 { 00019 std::string name; 00020 int fd; 00021 00028 Lockfile(const std::string& name, bool write = true); 00029 ~Lockfile(); 00030 00031 private: 00032 // Disallow copying 00033 Lockfile(const Lockfile&); 00034 Lockfile& operator=(const Lockfile&); 00035 }; 00036 00037 } 00038 } 00039 } 00040 00041 // vim:set ts=4 sw=4: 00042 #endif