32 #include "error_list.h" 47 static Mutex* (*create_func)(bool);
51 virtual void lock()=0;
virtual void unlock()=0
Unlock the mutex, let other threads continue.
virtual void lock()=0
Lock the mutex, block if locked by someone else.
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.
Definition: mutex.cpp:37