mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix lock on overflow/underflow in ArrayBlockingQueue
This commit is contained in:
parent
21411cd1d8
commit
5ec05b9446
|
@ -417,7 +417,8 @@ public class TArrayBlockingQueue<E> extends TAbstractQueue<E> implements TBlocki
|
|||
}
|
||||
if (waitHandlers != null) {
|
||||
while (!waitHandlers.isEmpty()) {
|
||||
Platform.postpone(() -> waitHandlers.remove().changed());
|
||||
WaitHandler handler = waitHandlers.remove();
|
||||
Platform.postpone(() -> handler.changed());
|
||||
}
|
||||
waitHandlers = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user