From abd12dd1b63d9e680bdc157fd5aa1fdb579e111e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 28 Jan 2005 22:05:51 +0000 Subject: Use class Mutex instead of MutexRef svn-id: r16679 --- common/timer.cpp | 5 ----- common/timer.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'common') 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; -- cgit v1.2.3