Fixing bug where a dispatcher would shut down the executor service before all tasks were executed, also taking the opportunity to decrease the size per mailbox by atleast 4 bytes
This commit is contained in:
parent
0307a655d3
commit
e40b7cd8d6
7 changed files with 22 additions and 36 deletions
|
|
@ -98,14 +98,15 @@ class Dispatcher(
|
|||
}
|
||||
}
|
||||
|
||||
protected[akka] def createMailbox(actor: ActorCell): Mailbox = mailboxType.create(this, actor)
|
||||
protected[akka] def createMailbox(actor: ActorCell): Mailbox = mailboxType.create(actor)
|
||||
|
||||
protected[akka] def start {}
|
||||
|
||||
protected[akka] def shutdown {
|
||||
val old = executorService.getAndSet(new LazyExecutorServiceWrapper(executorServiceFactory.createExecutorService))
|
||||
if (old ne null)
|
||||
old.shutdownNow()
|
||||
if (old ne null) {
|
||||
old.shutdown()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue