aboutsummaryrefslogtreecommitdiff
path: root/src/timer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer.hpp')
-rw-r--r--src/timer.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/timer.hpp b/src/timer.hpp
index 5d6e8b71..3488db45 100644
--- a/src/timer.hpp
+++ b/src/timer.hpp
@@ -16,7 +16,11 @@ namespace cru
class TimerManager : public Object
{
public:
+ static TimerManager* GetInstance();
+
+ private:
TimerManager() = default;
+ public:
TimerManager(const TimerManager& other) = delete;
TimerManager(TimerManager&& other) = delete;
TimerManager& operator=(const TimerManager& other) = delete;
@@ -47,7 +51,7 @@ namespace cru
TimerTask& operator=(TimerTask&& other) = default;
~TimerTask() = default;
- void Cancel();
+ void Cancel() const;
private:
UINT_PTR id_;