Skip to content

l0.DependencyControl.shims.BadMutex

BadMutex = require "l0.DependencyControl.shims.BadMutex"
local BadMutex = require("l0.DependencyControl.shims.BadMutex")

Functions

tryLock

mutex.tryLock!
mutex.tryLock()

Attempts to acquire the process-scoped mutex without blocking.

Returns:

  • acquired boolean — True when the mutex was taken; false when already held or unavailable.

lock

mutex.lock!
mutex.lock()

Blocks until the process-scoped mutex is acquired.

Returns:

  • issued boolean — True when a wait was issued; false only when the mutex is unavailable.

unlock

mutex.unlock!
mutex.unlock()

Releases the process-scoped mutex; call only while holding it.

Returns:

  • issued boolean — True when a release was issued; false only when the mutex is unavailable.

Fields

field type description
version string