Fix Timer bug

This commit is contained in:
2019-04-26 11:57:29 +02:00
parent f96a45e3a2
commit 96d4dc0be9
2 changed files with 3 additions and 33 deletions
+3 -5
View File
@@ -4,6 +4,7 @@
#include <atomic>
#include <condition_variable>
#include <functional>
#include <memory>
#include <mutex>
#include <thread>
#include "Helpers.h"
@@ -21,12 +22,7 @@ public:
Timer(const Timer&) = delete;
Timer& operator= (const Timer&) = delete;
Timer(Timer&& other);
Timer& operator= (Timer&& other);
bool operator==(const Timer& other) const;
bool operator==(const std::string& identifier) const;
bool operator==(bool running) const;
public:
std::string Identifier() const;
@@ -102,6 +98,8 @@ private:
std::thread m_thread;
};
typedef std::unique_ptr<Timer> TimerPointer;
} // namespace Util
} // namespace PresenceDetection