Proper thread names for fork-join-executor. See #1805

This commit is contained in:
Patrik Nordwall 2012-02-08 11:53:55 +01:00
parent b25d25e6f7
commit 1f988889c2
5 changed files with 68 additions and 19 deletions

View file

@ -33,12 +33,7 @@ class Dispatcher(
extends MessageDispatcher(_prerequisites) {
protected[akka] val executorServiceFactory: ExecutorServiceFactory =
executorServiceFactoryProvider.createExecutorServiceFactory(
id,
prerequisites.threadFactory match {
case m: MonitorableThreadFactory m.copy(m.name + "-" + id)
case other other
})
executorServiceFactoryProvider.createExecutorServiceFactory(id, prerequisites.threadFactory)
protected[akka] val executorService = new AtomicReference[ExecutorService](new ExecutorServiceDelegate {
lazy val executor = executorServiceFactory.createExecutorService