Improving throughput for WorkStealer even more
This commit is contained in:
parent
d89c286fb2
commit
b5873ff2c7
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class ExecutorBasedEventDrivenWorkStealingDispatcher(
|
|||
|
||||
override private[akka] def dispatch(invocation: MessageInvocation) = {
|
||||
val mbox = getMailbox(invocation.receiver)
|
||||
if (donationInProgress.value == false && mbox.dispatcherLock.locked && attemptDonationOf(invocation, mbox)) {
|
||||
if (donationInProgress.value == false && (!mbox.isEmpty || mbox.dispatcherLock.locked) && attemptDonationOf(invocation, mbox)) {
|
||||
//We were busy and we got to donate the message to some other lucky guy, we're done here
|
||||
} else {
|
||||
mbox enqueue invocation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue