aboutsummaryrefslogtreecommitdiff
path: root/backends/mutex
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-04 01:51:32 +0000
committerAlejandro Marzini2010-06-04 01:51:32 +0000
commitf83360f66b246cc505ba803f35221c3e67236246 (patch)
tree15655ac8afb0b321d6a8e650f5eea67ac69edf5f /backends/mutex
parent38dbbca964ac182439c2e61840783a4b7465688a (diff)
downloadscummvm-rg350-f83360f66b246cc505ba803f35221c3e67236246.tar.gz
scummvm-rg350-f83360f66b246cc505ba803f35221c3e67236246.tar.bz2
scummvm-rg350-f83360f66b246cc505ba803f35221c3e67236246.zip
Created DefaultAudioManager and DefaultMutexManager.
Deleted base subsystems, managers will be used instead. svn-id: r49419
Diffstat (limited to 'backends/mutex')
-rw-r--r--backends/mutex/default/default-mutex.cpp38
-rw-r--r--backends/mutex/default/default-mutex.h48
2 files changed, 86 insertions, 0 deletions
diff --git a/backends/mutex/default/default-mutex.cpp b/backends/mutex/default/default-mutex.cpp
new file mode 100644
index 0000000000..936ede197a
--- /dev/null
+++ b/backends/mutex/default/default-mutex.cpp
@@ -0,0 +1,38 @@
+/* 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$
+ *
+ */
+
+#include "backends/mutex/default/default-mutex.h"
+
+OSystem::MutexRef DefaultMutexManager::createMutex() {
+ return OSystem::MutexRef();
+}
+
+bool DefaultMutexManager::hasMutexFeature(OSystem::Feature f) {
+ return false;
+}
+
+bool DefaultMutexManager::getMutexFeatureState(OSystem::Feature f) {
+ return false;
+}
diff --git a/backends/mutex/default/default-mutex.h b/backends/mutex/default/default-mutex.h
new file mode 100644
index 0000000000..bd667eba5b
--- /dev/null
+++ b/backends/mutex/default/default-mutex.h
@@ -0,0 +1,48 @@
+/* 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_DEFAULT_H
+#define BACKENDS_MUTEX_DEFAULT_H
+
+#include "common/system.h"
+#include "common/noncopyable.h"
+
+class DefaultMutexManager : Common::NonCopyable {
+public:
+ DefaultMutexManager() {}
+ ~DefaultMutexManager() {}
+
+ bool hasMutexFeature(OSystem::Feature f);
+ void setMutexFeatureState(OSystem::Feature f, bool enable) {}
+ bool getMutexFeatureState(OSystem::Feature f);
+
+ OSystem::MutexRef createMutex();
+ void lockMutex(OSystem::MutexRef mutex) {}
+ void unlockMutex(OSystem::MutexRef mutex) {}
+ void deleteMutex(OSystem::MutexRef mutex);
+};
+
+
+#endif