increase pause time since there may be many threads pausing concurrently

This commit is contained in:
Alexey Kudravtsev
2016-06-22 15:45:53 +03:00
parent 7968b2bbbb
commit 797f78c86e
2 changed files with 2 additions and 2 deletions
@@ -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);