mirror of
https://github.com/Stefan-5422/School-Programming-Projekt-022022.git
synced 2026-09-04 08:56:01 +02:00
Remove unnecessary synchronized keyword from GlobalExecQueue
This commit is contained in:
@@ -22,9 +22,7 @@ public class GlobalExecQueue {
|
||||
Semaphore s = new Semaphore(0);
|
||||
Platform.runLater(() -> {
|
||||
while (queue.size() > 0) {
|
||||
synchronized (GlobalExecQueue.class) {
|
||||
Objects.requireNonNull(queue.poll()).run();
|
||||
}
|
||||
Objects.requireNonNull(queue.poll()).run();
|
||||
}
|
||||
s.release();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user