diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 20:00:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 20:00:56 -0700 |
commit | 69e14325e3eaa3722766bb9706d7da5862b6ea26 (patch) | |
tree | 202dca5ebbdb49db1352215aac9887b5e1afa2da /cpp/038scheduler | |
parent | b75e94b317509b26d60223db6cf8f388890a79fb (diff) | |
download | mu-69e14325e3eaa3722766bb9706d7da5862b6ea26.tar.gz |
1170
Diffstat (limited to 'cpp/038scheduler')
-rw-r--r-- | cpp/038scheduler | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/038scheduler b/cpp/038scheduler index 5ca6cbdc..08be7821 100644 --- a/cpp/038scheduler +++ b/cpp/038scheduler @@ -14,8 +14,8 @@ void run(recipe_number r) { } :(replace "void run_current_routine()") void run_current_routine(size_t time_slice) -:(replace "while (!done())" following "void run_current_routine(size_t time_slice)") +:(replace "while (!Current_routine->completed())" following "void run_current_routine(size_t time_slice)") size_t ninstrs = 0; -while (!done() && ninstrs < time_slice) +while (!Current_routine->completed() && ninstrs < time_slice) :(after "Running One Instruction") ninstrs++; |