From ba18bdd73f94f7e994b787d41aec9405f94a180f Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 17 Oct 2011 16:28:59 +0200 Subject: [PATCH] setDaemon(true) for threadpool threads --- platform/util/src/com/intellij/util/ConcurrencyUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/util/src/com/intellij/util/ConcurrencyUtil.java b/platform/util/src/com/intellij/util/ConcurrencyUtil.java index 4e98b30a5b99..74c78ec42308 100644 --- a/platform/util/src/com/intellij/util/ConcurrencyUtil.java +++ b/platform/util/src/com/intellij/util/ConcurrencyUtil.java @@ -99,6 +99,7 @@ public class ConcurrencyUtil { new LinkedBlockingQueue(), new ThreadFactory() { public Thread newThread(final Runnable r) { final Thread thread = new Thread(r, threadFactoryName); + thread.setDaemon(true); thread.setPriority(threadPriority); return thread; } @@ -115,6 +116,7 @@ public class ConcurrencyUtil { ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1, new ThreadFactory() { public Thread newThread(final Runnable r) { final Thread thread = new Thread(r, threadFactoryName); + thread.setDaemon(true); thread.setPriority(threadPriority); return thread; }