From 797f78c86e73af60fe91b94f659871dc4184c44b Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 22 Jun 2016 15:23:52 +0300 Subject: [PATCH] increase pause time since there may be many threads pausing concurrently --- .../com/intellij/openapi/progress/util/TooManyUsagesStatus.java | 2 +- .../usageView/src/com/intellij/usages/impl/UsageViewImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/core-impl/src/com/intellij/openapi/progress/util/TooManyUsagesStatus.java b/platform/core-impl/src/com/intellij/openapi/progress/util/TooManyUsagesStatus.java index a20d42d38bf8..a7818a9994cc 100644 --- a/platform/core-impl/src/com/intellij/openapi/progress/util/TooManyUsagesStatus.java +++ b/platform/core-impl/src/com/intellij/openapi/progress/util/TooManyUsagesStatus.java @@ -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; } diff --git a/platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java b/platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java index 57c0476d49be..5fb1e51df688 100644 --- a/platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java +++ b/platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java @@ -866,7 +866,7 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra Processor processor = usage -> { if (searchHasBeenCancelled()) return false; - TooManyUsagesStatus.getFrom(indicator).pauseProcessingIfTooManyUsages(); + tooManyUsagesStatus.pauseProcessingIfTooManyUsages(); boolean incrementCounter = !com.intellij.usages.UsageViewManager.isSelfUsage(usage, myTargets);