寻找报错

master
Cui YongXing 2024-09-05 23:43:57 +08:00
parent 9cc6bd3249
commit 6fcbb39531
1 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,11 @@ public class OptimizedPrioritizedThreadPool {
} finally {
emergencySemaphore.release();
if (remainingTasks.decrementAndGet() == 0) {
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
restoreDefaults();
}
}