aboutsummaryrefslogtreecommitdiff
path: root/core/os/mutex.h
diff options
context:
space:
mode:
authorHubert Jarosz2016-03-09 00:00:52 +0100
committerHubert Jarosz2016-03-09 00:00:52 +0100
commit4a4f2479146aa33e235ed57cde311efda68d3c8f (patch)
treecf91f2869ff8f058c6682569fb31e22e5ee736ad /core/os/mutex.h
parent1dad6eca812e5c2e313b54265114de8a1d73d999 (diff)
downloadgodot-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.gz
godot-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.zst
godot-4a4f2479146aa33e235ed57cde311efda68d3c8f.zip
Diffstat (limited to 'core/os/mutex.h')
-rw-r--r--core/os/mutex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/os/mutex.h b/core/os/mutex.h
index f16375aa2..5870171dc 100644
--- a/core/os/mutex.h
+++ b/core/os/mutex.h
@@ -33,7 +33,7 @@
/**
- * @class Mutex
+ * @class Mutex
* @author Juan Linietsky
* Portable Mutex (thread-safe locking) implementation.
* Mutexes are always recursive ( they don't self-lock in a single thread ).
@@ -43,9 +43,9 @@
class Mutex {
-protected:
+protected:
static Mutex* (*create_func)(bool);
-
+
public:
virtual void lock()=0; ///< Lock the mutex, block if locked by someone else
@@ -53,7 +53,7 @@ public:
virtual Error try_lock()=0; ///< Attempt to lock the mutex, OK on success, ERROR means it can't lock.
static Mutex * create(bool p_recursive=true); ///< Create a mutex
-
+
virtual ~Mutex();
};