1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Allow sleeping processes that are awoken to immediately execute.

This commit is contained in:
Stephen Marz 2020-04-25 23:26:14 -04:00
parent 60edb9f72a
commit fd9c9449b0

View File

@ -32,6 +32,8 @@ pub fn schedule() -> usize {
// the past.
if prc.get_sleep_until() <= get_mtime() {
prc.set_state(ProcessState::Running);
frame_addr = prc.get_frame_address();
break 'procfindloop;
}
},
_ => {},