A synchronization Mutex.
|void||lock ( )|
|Error||try_lock ( )|
|void||unlock ( )|
A synchronization Mutex. Element used to synchronize multiple Threads. Basically a binary Semaphore. Guarantees that only one thread can ever acquire this lock at a time. Can be used to protect a critical section. Be careful to avoid deadlocks.
Mutex, blocks until it is unlocked by the current owner.
Mutex, leaving it to other threads.
© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.