sim: prioritize async events; prevent starvation
authorCurtis Dunham <Curtis.Dunham@arm.com>
Fri, 19 Dec 2014 21:32:34 +0000 (15:32 -0600)
committerCurtis Dunham <Curtis.Dunham@arm.com>
Fri, 19 Dec 2014 21:32:34 +0000 (15:32 -0600)
commitb89fd576633f63b14b8e5eb24de377e4918c363d
tree1ffcf6c6b299460668dc14af07af2d4c30e94bbd
parent20111ba9171378bbf3bfd2f4628d7e8a0e9cbd3b
sim: prioritize async events; prevent starvation

If a time quantum event is the only one in the queue, async
events (Ctrl-C, I/O, etc.) will never be processed.

So process them first.
src/sim/simulate.cc