aboutsummaryrefslogtreecommitdiff
path: root/src/timer.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-09 21:03:45 +0800
committercrupest <crupest@outlook.com>2018-11-09 21:03:45 +0800
commit4b219b569c16db6027dd36e4656152f261321c60 (patch)
tree2f40c6aeb74382c5a958f153e4598950dffae94c /src/timer.hpp
parent6515948e3f5b97f90446536f72e99d71e96f9de7 (diff)
parent9ef75fe91837394620edb91f332065a4f34a0281 (diff)
downloadcru-4b219b569c16db6027dd36e4656152f261321c60.tar.gz
cru-4b219b569c16db6027dd36e4656152f261321c60.tar.bz2
cru-4b219b569c16db6027dd36e4656152f261321c60.zip
Merge branch 'master' into theme-resource
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_;