We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfcc712 commit 7a4a090Copy full SHA for 7a4a090
engine/src/main/java/org/terasology/engine/core/GameThread.java
@@ -70,9 +70,10 @@ public static void synch(Runnable process) throws InterruptedException {
70
*/
71
public static void processWaitingProcesses() {
72
if (Thread.currentThread() == gameThread) {
73
- List<Runnable> processes = Lists.newArrayList();
74
- pendingRunnables.drainTo(processes);
75
- processes.forEach(Runnable::run);
+ Runnable inst;
+ while((inst =pendingRunnables.poll()) != null) {
+ inst.run();
76
+ }
77
}
78
79
0 commit comments