summaryrefslogtreecommitdiffstats
path: root/core/os/thread_safe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/os/thread_safe.cpp')
-rw-r--r--core/os/thread_safe.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/os/thread_safe.cpp b/core/os/thread_safe.cpp
index f252190504..a742b1144e 100644
--- a/core/os/thread_safe.cpp
+++ b/core/os/thread_safe.cpp
@@ -30,17 +30,17 @@
#include "error_macros.h"
#include "os/memory.h"
-ThreadSafe::ThreadSafe() {
+ThreadSafe::ThreadSafe() {
- mutex = Mutex::create();
+ mutex = Mutex::create();
if (!mutex) {
-
+
WARN_PRINT("THREAD_SAFE defined, but no default mutex type");
}
}
-ThreadSafe::~ThreadSafe() {
-
- if (mutex)
- memdelete( mutex );
+ThreadSafe::~ThreadSafe() {
+
+ if (mutex)
+ memdelete( mutex );
}