pub fn global_lock_host_sync<R>(
lock_id: &str,
with_lock: impl FnOnce() -> RResult<R, AnyErr>,
) -> RResult<R, AnyErr>
Available on non-WebAssembly only.
Expand description
APPLIES TO ALL PROCESSES ON HOST MACHINE.
If only needing for the current process, use global_lock_process_sync
instead.
Global lock for a given lock id.