Proper thread names for fork-join-executor. See #1805
This commit is contained in:
parent
b25d25e6f7
commit
1f988889c2
5 changed files with 68 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue