- Companion:
- object
Value members
Concrete methods
Queries whether the given fiber is waiting to acquire this lock.
Queries whether the given fiber is waiting to acquire this lock.
Concrete fields
Queries whether any fibers are waiting to acquire this lock.
Queries whether any fibers are waiting to acquire this lock.
Queries the number of holds on this lock by the current fiber.
Queries the number of holds on this lock by the current fiber.
Queries if this lock is held by the current fiber.
Queries if this lock is held by the current fiber.
Acquires the lock.
Acquires the lock.
Acquires the lock if it is not held by another fiber and returns immediately, setting the lock hold count to one.
If the current fiber already holds the lock then the hold count is incremented by one and the method returns immediately.
If the lock is held by another fiber then the current fiber is put to sleep until the lock has been acquired, at which time the lock hold count is set to one.
Returns the fiber ID of the fiber that currently owns this lock, if owned, or None otherwise.
Returns the fiber ID of the fiber that currently owns this lock, if owned, or None otherwise.
Returns the number of fibers waiting to acquire this lock.
Returns the number of fibers waiting to acquire this lock.
Returns the fiber IDs of the fibers that are waiting to acquire this lock.
Returns the fiber IDs of the fibers that are waiting to acquire this lock.
Acquires the lock only if it is not held by another fiber at the time of invocation.
Acquires the lock only if it is not held by another fiber at the time of invocation.