diff options
author | Alejandro Marzini | 2010-06-10 03:18:16 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-06-10 03:18:16 +0000 |
commit | 1cebd3326242d89a0819f5b00fece58db691932f (patch) | |
tree | ad497f1a9e13191563fa0b417c4a7f89cb32c8b8 /backends/mutex/null | |
parent | 7b63e8ae2505897f5c275bf755ef8384b4cb91a4 (diff) | |
download | scummvm-rg350-1cebd3326242d89a0819f5b00fece58db691932f.tar.gz scummvm-rg350-1cebd3326242d89a0819f5b00fece58db691932f.tar.bz2 scummvm-rg350-1cebd3326242d89a0819f5b00fece58db691932f.zip |
Added an abstract version of MutexManager. Deleted DefaultMutexManager, now it's NullMutexManager.
svn-id: r49556
Diffstat (limited to 'backends/mutex/null')
-rw-r--r-- | backends/mutex/null/null-mutex.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/backends/mutex/null/null-mutex.h b/backends/mutex/null/null-mutex.h new file mode 100644 index 0000000000..76bb595631 --- /dev/null +++ b/backends/mutex/null/null-mutex.h @@ -0,0 +1,39 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#ifndef BACKENDS_MUTEX_NULL_H +#define BACKENDS_MUTEX_NULL_H + +#include "backends/mutex/abstract-mutex.h" + +class NullMutexManager : MutexManager { +public: + OSystem::MutexRef createMutex() { return OSystem::MutexRef(); } + void lockMutex(OSystem::MutexRef mutex) {} + void unlockMutex(OSystem::MutexRef mutex) {} + void deleteMutex(OSystem::MutexRef mutex) {} +}; + +#endif |