diff options
author | Max Horn | 2005-01-15 23:08:12 +0000 |
---|---|---|
committer | Max Horn | 2005-01-15 23:08:12 +0000 |
commit | aa9debccec0c30f32f63957c9f6465afadb56f84 (patch) | |
tree | 044cdf594184b0d59c6741a97fa443044def6557 /common | |
parent | 541076d8dbce579f1a47b5f181502a1e7f7708cc (diff) | |
download | scummvm-rg350-aa9debccec0c30f32f63957c9f6465afadb56f84.tar.gz scummvm-rg350-aa9debccec0c30f32f63957c9f6465afadb56f84.tar.bz2 scummvm-rg350-aa9debccec0c30f32f63957c9f6465afadb56f84.zip |
Forgot to commit this
svn-id: r16567
Diffstat (limited to 'common')
-rw-r--r-- | common/system.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/common/system.cpp b/common/system.cpp index 0168cf482c..41e66050b4 100644 --- a/common/system.cpp +++ b/common/system.cpp @@ -90,33 +90,3 @@ void OSystem::displayMessageOnOSD(const char *msg) { SaveFileManager *OSystem::getSavefileManager() { return new DefaultSaveFileManager(); } - -#pragma mark - - - -namespace Common { - -StackLock::StackLock(OSystem::MutexRef mutex, const char *mutexName) - : _mutex(mutex), _mutexName(mutexName) { - lock(); -} - -StackLock::~StackLock() { - unlock(); -} - -void StackLock::lock() { - if (_mutexName != NULL) - debug(6, "Locking mutex %s", _mutexName); - - g_system->lockMutex(_mutex); -} - -void StackLock::unlock() { - if (_mutexName != NULL) - debug(6, "Unlocking mutex %s", _mutexName); - - g_system->unlockMutex(_mutex); -} - -} // End of namespace Common |