Browse Source

Mutex noop when threading is not supported.

Бранимир Караџић 5 years ago
parent
commit
0455026c42
1 changed files with 23 additions and 1 deletions
  1. 23 1
      src/mutex.cpp

+ 23 - 1
src/mutex.cpp

@@ -158,4 +158,26 @@ namespace bx
 
 } // namespace bx
 
-#endif // BX_MUTEX_H_HEADER_GUARD
+#else
+
+namespace bx
+{
+	Mutex::Mutex()
+	{
+	}
+
+	Mutex::~Mutex()
+	{
+	}
+
+	void Mutex::lock()
+	{
+	}
+
+	void Mutex::unlock()
+	{
+	}
+
+} // namespace bx
+
+#endif // BX_CONFIG_SUPPORTS_THREADING