dRonin
adbada4
dRonin GCS
|
Provides a mechanism to ensure only one instance runs Based on https://stackoverflow.com/a/28172162. More...
Classes | |
class | RunGuard |
Functions | |
static RunGuard & | RunGuard::instance (const QString &key) |
Get instance of this singleton. More... | |
bool | RunGuard::tryToRun () |
Attempt to run and fail if another instance is running. More... | |
quint64 | RunGuard::secondaryAttempts () |
Number of secondary instances attempted to start. More... | |
Provides a mechanism to ensure only one instance runs Based on https://stackoverflow.com/a/28172162.
Provides a mechanism to ensure only one instance runs.
|
static |
Get instance of this singleton.
key | A key that is unique to your application |
Definition at line 70 of file runguard.cpp.
quint64 RunGuard::secondaryAttempts | ( | ) |
Number of secondary instances attempted to start.
Definition at line 110 of file runguard.cpp.
bool RunGuard::tryToRun | ( | ) |
Attempt to run and fail if another instance is running.
Definition at line 92 of file runguard.cpp.