Forgot to commit this
svn-id: r16567
This commit is contained in:
parent
541076d8db
commit
aa9debccec
1 changed files with 0 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue