about summary refs log tree commit diff stats
path: root/cpp/038scheduler
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 20:00:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 20:00:56 -0700
commit69e14325e3eaa3722766bb9706d7da5862b6ea26 (patch)
tree202dca5ebbdb49db1352215aac9887b5e1afa2da /cpp/038scheduler
parentb75e94b317509b26d60223db6cf8f388890a79fb (diff)
downloadmu-69e14325e3eaa3722766bb9706d7da5862b6ea26.tar.gz
1170
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++;