|
RADLib
RADical C++ application framework
|
Single-instance app lock using RADCore::RADLockFile. More...
#include <RADService.h>
Public Member Functions | |
| SingleInstanceLock (std::string path) | |
| Creates a lock for path. More... | |
| ~SingleInstanceLock () | |
| Releases the lock. More... | |
| bool | tryLock () |
| Attempts to acquire the lock. More... | |
| bool | isLocked () const |
| Returns true when lock is held. More... | |
Single-instance app lock using RADCore::RADLockFile.
|
explicit |
Creates a lock for path.
| RADService::SingleInstanceLock::~SingleInstanceLock | ( | ) |
Releases the lock.
| bool RADService::SingleInstanceLock::isLocked | ( | ) | const |
Returns true when lock is held.
| bool RADService::SingleInstanceLock::tryLock | ( | ) |
Attempts to acquire the lock.