From 0455026c42c9ed47d44c098a939bb7001a3ff631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Wed, 13 May 2020 20:30:46 -0700 Subject: [PATCH] Mutex noop when threading is not supported. --- src/mutex.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/mutex.cpp b/src/mutex.cpp index d4f42f3..6f24cba 100644 --- a/src/mutex.cpp +++ b/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