mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +00:00
Fix thread switch
This commit is contained in:
1 parent
9a43f868aa
commit
6dad50aab1
3 files changed
+9
-5
No files matched your search
@@ -55,7 +55,7 @@ public class EngineTarget {
|
||||
}
|
||||
|
||||
public void close() {
|
||||
parallaxBurster.shutdownAndAwait();
|
||||
burster.shutdownAndAwait();
|
||||
parallaxBurster.shutdownLater();
|
||||
burster.shutdownLater();
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ package com.volmit.iris.engine.parallel;
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.core.IrisSettings;
|
||||
import com.volmit.iris.util.collection.KList;
|
||||
import com.volmit.iris.util.scheduling.J;
|
||||
|
||||
import java.util.concurrent.*;
|
||||
|
||||
@@ -96,6 +97,10 @@ public class MultiBurst {
|
||||
service.shutdown();
|
||||
}
|
||||
|
||||
public void shutdownLater() {
|
||||
J.a(service::shutdown, 100);
|
||||
}
|
||||
|
||||
public void shutdownAndAwait() {
|
||||
service.shutdown();
|
||||
|
||||
|
||||
Reference in new issue
Block a user