aboutsummaryrefslogtreecommitdiff
path: root/src/rungaurd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rungaurd.h')
-rw-r--r--src/rungaurd.h32
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