rename becomeOpen/becomeSuspended to resume/suspend on Mailbox

This commit is contained in:
Roland 2012-07-13 12:25:26 +02:00
parent 7ab9fb4135
commit 4bbb1dbcbd
3 changed files with 10 additions and 10 deletions

View file

@ -151,7 +151,7 @@ class CallingThreadDispatcher(
override def suspend(actor: ActorCell) {
actor.mailbox match {
case m: CallingThreadMailbox m.suspendSwitch.switchOn; m.becomeSuspended()
case m: CallingThreadMailbox m.suspendSwitch.switchOn; m.suspend()
case m m.systemEnqueue(actor.self, Suspend())
}
}
@ -163,7 +163,7 @@ class CallingThreadDispatcher(
val wasActive = queue.isActive
val switched = mbox.suspendSwitch.switchOff {
CallingThreadDispatcherQueues(actor.system).gatherFromAllOtherQueues(mbox, queue)
mbox.becomeOpen()
mbox.resume()
}
if (switched && !wasActive) {
runQueue(mbox, queue)