diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /drivers/unix/mutex_posix.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf1809c6e3e905b94b8764e99491e608122261.tar.gz godot-5dbf1809c6e3e905b94b8764e99491e608122261.tar.zst godot-5dbf1809c6e3e905b94b8764e99491e608122261.zip | |
Diffstat (limited to 'drivers/unix/mutex_posix.h')
| -rw-r--r-- | drivers/unix/mutex_posix.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/unix/mutex_posix.h b/drivers/unix/mutex_posix.h index a71400924..84fb32b84 100644 --- a/drivers/unix/mutex_posix.h +++ b/drivers/unix/mutex_posix.h @@ -31,29 +31,26 @@ #if defined(UNIX_ENABLED) || defined(PTHREAD_ENABLED) -#include <pthread.h> #include "os/mutex.h" +#include <pthread.h> class MutexPosix : public Mutex { - pthread_mutexattr_t attr; + pthread_mutexattr_t attr; pthread_mutex_t mutex; - + static Mutex *create_func_posix(bool p_recursive); - -public: - virtual void lock(); +public: + virtual void lock(); virtual void unlock(); - virtual Error try_lock(); - + virtual Error try_lock(); static void make_default(); MutexPosix(bool p_recursive); - - ~MutexPosix(); + ~MutexPosix(); }; #endif |
