mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-30 20:39:21 +00:00
give hyperLock a purpose again
This commit is contained in:
@@ -451,8 +451,8 @@ public class Mantle {
|
||||
List<Future<?>> futures = new ArrayList<>();
|
||||
ExecutorService service = Executors.newFixedThreadPool(dynamicThreads.get());
|
||||
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);
|
||||
if (m != null) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user