global lock
Basic mutexes to prevent multiple scripts (or concurrent executions of the same script) in a domain from running at the same time.
methods
M.acquire
function M.acquire(name: string) -> nil
Acquire a lock by name.
The lock will remain locked until a call to lock.release or the script
finishes executing.
If this lock has already been acquired by another script this function will block until the lock is released.
M.release
function M.release(name: string) -> nil
Release a lock by name.