|
RADLib
RADical C++ application framework
|
Advisory filesystem lock file. More...
#include <RADCore.h>
Public Member Functions | |
| RADLockFile (std::string fileName) | |
| Creates a lock file object for fileName. More... | |
| ~RADLockFile () | |
| Unlocks on destruction when needed. More... | |
| RADLockFile (const RADLockFile &)=delete | |
| Lock files cannot be copied. More... | |
| RADLockFile & | operator= (const RADLockFile &)=delete |
| Lock files cannot be copied. More... | |
| bool | tryLock () |
| Attempts to acquire the lock. More... | |
| void | unlock () |
| Releases the lock if held. More... | |
| bool | isLocked () const |
| Returns true when this object holds the lock. More... | |
| const std::string & | fileName () const |
| Returns the lock file path. More... | |
Advisory filesystem lock file.
|
explicit |
Creates a lock file object for fileName.
| RADCore::RADLockFile::~RADLockFile | ( | ) |
Unlocks on destruction when needed.
|
delete |
Lock files cannot be copied.
| const std::string& RADCore::RADLockFile::fileName | ( | ) | const |
Returns the lock file path.
| bool RADCore::RADLockFile::isLocked | ( | ) | const |
Returns true when this object holds the lock.
|
delete |
Lock files cannot be copied.
| bool RADCore::RADLockFile::tryLock | ( | ) |
Attempts to acquire the lock.
| void RADCore::RADLockFile::unlock | ( | ) |
Releases the lock if held.