diff options
author | 2022-05-10 10:09:15 +0530 | |
---|---|---|
committer | 2022-05-10 10:09:15 +0530 | |
commit | 8c0df6d34bba406e4d8e2711e4f5134a24107b2e (patch) | |
tree | f2fc168294b024289f40fd8351abb8f26d305e76 /src/rungaurd.h | |
parent | 7d3024668b3cb1b8f530220dfcf130d9acba8dee (diff) | |
download | whatsie-8c0df6d34bba406e4d8e2711e4f5134a24107b2e.tar.gz whatsie-8c0df6d34bba406e4d8e2711e4f5134a24107b2e.zip |
chore: remove runguard
Diffstat (limited to '')
-rw-r--r-- | src/rungaurd.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/rungaurd.h b/src/rungaurd.h deleted file mode 100644 index 06d45a8..0000000 --- a/src/rungaurd.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef RUNGUARD_H -#define RUNGUARD_H - -#include <QObject> -#include <QSharedMemory> -#include <QSystemSemaphore> - - -class RunGuard -{ - -public: - RunGuard( const QString& key ); - ~RunGuard(); - - bool isAnotherRunning(); - bool tryToRun(); - void release(); - -private: - const QString key; - const QString memLockKey; - const QString sharedmemKey; - - QSharedMemory sharedMem; - QSystemSemaphore memLock; - - Q_DISABLE_COPY( RunGuard ) -}; - - -#endif // RUNGUARD_H |