Allow core threads to time out in dispatchers

This commit is contained in:
Viktor Klang 2010-08-12 13:39:20 +02:00
parent 1513c2c0c4
commit 94e01628f0

View file

@ -34,6 +34,7 @@ trait ThreadPoolBuilder {
def buildThreadPool(): Unit = synchronized {
ensureNotActive
inProcessOfBuilding = false
threadPoolBuilder.allowCoreThreadTimeOut(true)
if (boundedExecutorBound > 0) {
val boundedExecutor = new BoundedExecutorDecorator(threadPoolBuilder, boundedExecutorBound)
boundedExecutorBound = -1