mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
increase pause time since there may be many threads pausing concurrently
This commit is contained in:
@@ -73,7 +73,7 @@ public class TooManyUsagesStatus {
|
||||
//assert ApplicationManager.getApplication().isDispatchThread() || !ApplicationManager.getApplication().isReadAccessAllowed();
|
||||
long start = System.currentTimeMillis();
|
||||
try {
|
||||
while (System.currentTimeMillis() < start + 1000) {
|
||||
while (System.currentTimeMillis() < start + 2000) {
|
||||
if (waitWhileUserClick.await(10, TimeUnit.MILLISECONDS)) break;
|
||||
if (myIndicator.isCanceled()) break;
|
||||
}
|
||||
|
||||
@@ -866,7 +866,7 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra
|
||||
|
||||
Processor<Usage> processor = usage -> {
|
||||
if (searchHasBeenCancelled()) return false;
|
||||
TooManyUsagesStatus.getFrom(indicator).pauseProcessingIfTooManyUsages();
|
||||
tooManyUsagesStatus.pauseProcessingIfTooManyUsages();
|
||||
|
||||
boolean incrementCounter = !com.intellij.usages.UsageViewManager.isSelfUsage(usage, myTargets);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user