From 69e14325e3eaa3722766bb9706d7da5862b6ea26 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 24 Apr 2015 20:00:56 -0700 Subject: 1170 --- cpp/038scheduler | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/038scheduler') 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++; -- cgit 1.4.1-2-gfad0