- <init>
Creates a new workspace lock.
- acquire
- attempt
Attempts to acquire the lock. Returns false if the lock is not available and
true if the lock has be
- createSemaphore
Returns null if acquired and a Semaphore object otherwise. If a waiting
semaphore already exists for
- doAcquire
Attempts to acquire this lock. Callers will block until this lock comes
available to them, or until
- doRelease
Releases this lock from the thread that used to own it. Grants this lock to the
next thread in the q
- enqueue
If there is another semaphore with the same runnable in the queue, the other is
returned and the new
- forceRelease
Suspend this lock by granting the lock to the next lock in the queue. Return the
depth of the suspen
- removeFromQueue
Removes a semaphore from the queue of waiting operations.
- setCurrentOperationThread
If newThread is null, release this lock from its previous owner. If newThread is
not null, grant thi
- setDepth
Forces the lock to be at the given depth. Used when re-acquiring a suspended
lock.
- updateCurrentOperation
This lock has just been granted to a new thread (the thread waited for it).
Remove the request from