diff options
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++; |