When a pending lock is added to the queue (for pending locks),
the lock may already be released.
In that case, no notifyAll() will be called.
Change-Id: I4d63d5656b09ab0cb9d5f242c9abf9d708fb1a9b
Issue-ID: NONRTRIC-195
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
private synchronized void addToQueue(MonoSink<Lock> callback, LockType lockType) {
lockRequestQueue.add(new LockRequest(callback, lockType, this));
+ processQueuedEntries();
}
@SuppressWarnings("java:S2274") // Always invoke wait() and await() methods inside a loop