mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
give hyperLock a purpose again
This commit is contained in:
@@ -451,8 +451,8 @@ public class Mantle {
|
|||||||
List<Future<?>> futures = new ArrayList<>();
|
List<Future<?>> futures = new ArrayList<>();
|
||||||
ExecutorService service = Executors.newFixedThreadPool(dynamicThreads.get());
|
ExecutorService service = Executors.newFixedThreadPool(dynamicThreads.get());
|
||||||
for (Long id : new ArrayList<>(toUnload)) {
|
for (Long id : new ArrayList<>(toUnload)) {
|
||||||
hyperLock.withLong(id, () ->
|
futures.add(service.submit(() ->
|
||||||
futures.add(service.submit(() -> {
|
hyperLock.withLong(id, () -> {
|
||||||
TectonicPlate m = loadedRegions.get(id);
|
TectonicPlate m = loadedRegions.get(id);
|
||||||
if (m != null) {
|
if (m != null) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user