Platform independent lockfile. More...
#include <Radiant/LockFile.hpp>
Public Member Functions | |
| bool | isLocked () const |
| Check if the file is locked. More... | |
| LockFile (const char *filename) | |
| Tries to acquire an exclusive lock on the given file. More... | |
| ~LockFile () | |
| Releases the lock. | |
Platform independent lockfile.
This can be used as a multi-process mutex
| Radiant::LockFile::LockFile | ( | const char * | filename | ) |
Tries to acquire an exclusive lock on the given file.
No other operations should be done on this file If the file doesn't exist it is created.
| filename | Filename of lockfile |
| bool Radiant::LockFile::isLocked | ( | ) | const |
Check if the file is locked.