26 lines
472 B
GDScript3
Raw Normal View History

2025-01-11 00:25:52 +01:00
class_name LockBase
## Interface of a Lock
##
## Allows a thread to aquire and release it.
func lock():
NotImplementedError.raise()
func unlock():
NotImplementedError.raise()
func try_lock() -> bool:
NotImplementedError.raise()
return false
func is_locking_thread() -> bool:
NotImplementedError.raise()
return false
func _unlock_and_store_recursion_depth():
NotImplementedError.raise()
func _lock_and_restore_recursion_depth():
NotImplementedError.raise()