#include <mutex.h>
|
virtual void | lock ()=0 |
| Lock the mutex, block if locked by someone else.
|
|
virtual void | unlock ()=0 |
| Unlock the mutex, let other threads continue.
|
|
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.
|
|
|
static Mutex *(* | create_func )(bool) |
|
- Author
- Juan Linietsky Portable Mutex (thread-safe locking) implementation. Mutexes are always recursive ( they don't self-lock in a single thread ). Mutexes can be used with a Lockp object like this, to avoid having to worry about unlocking: Lockp( mutex );
The documentation for this class was generated from the following files:
- /Users/huihoo/Downloads/godot-2.0.4-stable/core/os/mutex.h
- /Users/huihoo/Downloads/godot-2.0.4-stable/core/os/mutex.cpp