aboutsummaryrefslogtreecommitdiff
path: root/core/os/mutex.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-03-05 16:44:50 +0100
committerRémi Verschelde2017-03-05 16:44:50 +0100
commit5dbf1809c6e3e905b94b8764e99491e608122261 (patch)
tree5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /core/os/mutex.cpp
parent45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff)
downloadgodot-5dbf1809c6e3e905b94b8764e99491e608122261.tar.gz
godot-5dbf1809c6e3e905b94b8764e99491e608122261.tar.zst
godot-5dbf1809c6e3e905b94b8764e99491e608122261.zip
Diffstat (limited to 'core/os/mutex.cpp')
-rw-r--r--core/os/mutex.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/core/os/mutex.cpp b/core/os/mutex.cpp
index acdcb492d..cdc18effd 100644
--- a/core/os/mutex.cpp
+++ b/core/os/mutex.cpp
@@ -30,24 +30,19 @@
#include "error_macros.h"
#include <stddef.h>
-
-
-Mutex* (*Mutex::create_func)(bool)=0;
+Mutex *(*Mutex::create_func)(bool) = 0;
Mutex *Mutex::create(bool p_recursive) {
- ERR_FAIL_COND_V( !create_func, 0 );
+ ERR_FAIL_COND_V(!create_func, 0);
return create_func(p_recursive);
}
-
Mutex::~Mutex() {
-
-
}
-Mutex *_global_mutex=NULL;
+Mutex *_global_mutex = NULL;
void _global_lock() {
@@ -59,4 +54,3 @@ void _global_unlock() {
if (_global_mutex)
_global_mutex->unlock();
}
-