diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/timer.cpp | 5 | ||||
-rw-r--r-- | common/timer.h | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/common/timer.cpp b/common/timer.cpp index 230366ad0d..2075243106 100644 --- a/common/timer.cpp +++ b/common/timer.cpp @@ -30,12 +30,9 @@ Timer *g_timer = NULL; Timer::Timer(OSystem *system) : _system(system), - _mutex(0), _timerHandler(0), _lastTime(0) { - _mutex = _system->createMutex(); - g_timer = this; for (int i = 0; i < MAX_TIMERS; i++) { @@ -65,8 +62,6 @@ Timer::~Timer() { _timerSlots[i].counter = 0; } } - - _system->deleteMutex(_mutex); } int Timer::timer_handler(int t) { diff --git a/common/timer.h b/common/timer.h index 6b3509f41c..d509402314 100644 --- a/common/timer.h +++ b/common/timer.h @@ -39,7 +39,7 @@ public: private: OSystem *_system; - Common::MutexRef _mutex; + Common::Mutex _mutex; void *_timerHandler; int32 _thisTime; int32 _lastTime; |