Exit normal from processes that have no Frames left
@@ -80,9 +80,14 @@ impl Queues {
None
}
PushBack => {
+ if arc_process.code_stack_len() == 0 {
+ arc_process.exit();
+ Some(arc_process)
+ } else {
self.enqueue(arc_process);
None
}
+ }
Exit => Some(arc_process),
}
}
