wibble 1.1
|
RAII lock file. More...
#include <lockfile.h>
Public Member Functions | |
Lockfile (const std::string &name, bool write=true) | |
Create the lockfile with the given name. | |
~Lockfile () | |
Public Attributes | |
std::string | name |
int | fd |
RAII lock file.
It is implemented using fcntl, so that it should also work over network file systems. It should work at least on NFS and GFS.
Create the lockfile with the given name.
write | If false, use a read lock, else a write lock. |
wibble::sys::fs::Lockfile::~Lockfile | ( | ) |
int wibble::sys::fs::Lockfile::fd |
std::string wibble::sys::fs::Lockfile::name |