about summary refs log tree commit diff stats
path: root/cpp/038scheduler
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/038scheduler')
-rw-r--r--cpp/038scheduler4
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++;