qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
static void unlock()
Releases the lock on the current profile.
static QString getCurLockName()
Get current locked profile name.
Locks a Tox profile so that multiple instances can not use the same profile. Only one lock can be acq...
static void deathByBrokenLock()
Print an error then exit immediately.
static bool lock(QString profile)
Tries to acquire the lock on a profile, will not block.
static void assertLock()
Check that we actually own the lock. In case the file was deleted on disk, restore it....
static std::unique_ptr< QLockFile > lockfile
static bool hasLock()
Chacks, that profile locked.
static bool isLockable(QString profile)
Checks if a profile is currently locked by another instance. If we own the lock, we consider it locka...
static QString lockPathFromName(const QString &name)
static QString curLockName