Spellchecking and elided a try-block
This commit is contained in:
parent
05c12742e3
commit
4c0b9110c9
1 changed files with 5 additions and 3 deletions
|
|
@ -163,7 +163,9 @@ trait ExecutableMailbox extends Runnable { self: MessageQueue =>
|
|||
|
||||
final def run = {
|
||||
try {
|
||||
try { processMailbox() } catch { case ie: InterruptedException => true }
|
||||
processMailbox()
|
||||
} catch {
|
||||
case ie: InterruptedException =>
|
||||
} finally {
|
||||
dispatcherLock.unlock()
|
||||
}
|
||||
|
|
@ -193,10 +195,10 @@ trait ExecutableMailbox extends Runnable { self: MessageQueue =>
|
|||
if (self.suspended.locked) {
|
||||
null //If we are suspended, abort
|
||||
}
|
||||
else { //If we aren't suspended, we need to make sure we're not overstepping our boundraries
|
||||
else { //If we aren't suspended, we need to make sure we're not overstepping our boundaries
|
||||
processedMessages += 1
|
||||
if ((processedMessages >= dispatcher.throughput) || (isDeadlineEnabled && System.nanoTime >= deadlineNs)) // If we're throttled, break out
|
||||
null //We reached our boundraries, abort
|
||||
null //We reached our boundaries, abort
|
||||
else
|
||||
self.dequeue //Dequeue the next message
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue