Search in sources :

Example 1 with ProcessIOExecutorService

use of com.intellij.execution.process.ProcessIOExecutorService in project intellij-community by JetBrains.

the class ApplicationImpl method dispose.

@Override
public void dispose() {
    HeavyProcessLatch.INSTANCE.stopThreadPrioritizing();
    fireApplicationExiting();
    ShutDownTracker.getInstance().ensureStopperThreadsFinished();
    disposeComponents();
    AppScheduledExecutorService service = (AppScheduledExecutorService) AppExecutorUtil.getAppScheduledExecutorService();
    service.shutdownAppScheduledExecutorService();
    super.dispose();
    // dispose it last
    Disposer.dispose(myLastDisposable);
    if (gatherStatistics) {
        //noinspection TestOnlyProblems
        LOG.info(writeActionStatistics());
        LOG.info(ActionUtil.ActionPauses.STAT.statistics());
        //noinspection TestOnlyProblems
        LOG.info(((AppScheduledExecutorService) AppExecutorUtil.getAppScheduledExecutorService()).statistics() + "; ProcessIOExecutorService threads: " + ((ProcessIOExecutorService) ProcessIOExecutorService.INSTANCE).getThreadCounter());
    }
}
Also used : ProcessIOExecutorService(com.intellij.execution.process.ProcessIOExecutorService) AppScheduledExecutorService(com.intellij.util.concurrency.AppScheduledExecutorService)

Aggregations

ProcessIOExecutorService (com.intellij.execution.process.ProcessIOExecutorService)1 AppScheduledExecutorService (com.intellij.util.concurrency.AppScheduledExecutorService)1