Removing Un(der)used locking utils (locking is evil) and removing the last locks from the MessageDispatcher

This commit is contained in:
Viktor Klang 2011-11-16 15:54:14 +01:00
parent 5593e860bc
commit 13bfee782f
9 changed files with 129 additions and 244 deletions

View file

@ -93,15 +93,18 @@ class Dispatcher(
executorService.get() execute invocation
} catch {
case e: RejectedExecutionException
app.eventStream.publish(Warning(this, e.toString))
throw e
try {
executorService.get() execute invocation
} catch {
case e2: RejectedExecutionException
app.eventStream.publish(Warning(this, e2.toString))
throw e2
}
}
}
protected[akka] def createMailbox(actor: ActorCell): Mailbox = mailboxType.create(actor)
protected[akka] def start {}
protected[akka] def shutdown {
executorService.getAndSet(new ExecutorServiceDelegate {
lazy val executor = executorServiceFactory.createExecutorService