|
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. More... | |
| ~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.
| wibble::sys::fs::Lockfile::Lockfile | ( | const std::string & | name, |
| bool | write = true |
||
| ) |
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 |
1.8.13