From cd9bb850caeca88747a25436fc65c67c6d5cd89a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 27 Aug 2016 20:49:03 -0700 Subject: 3266 --- html/072scheduler.cc.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'html/072scheduler.cc.html') diff --git a/html/072scheduler.cc.html b/html/072scheduler.cc.html index 55f7ba88..78ac7437 100644 --- a/html/072scheduler.cc.html +++ b/html/072scheduler.cc.html @@ -21,8 +21,9 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color .Comment { color: #9090ff; } .Delimiter { color: #800080; } .Special { color: #c00000; } -.Identifier { color: #fcb165; } +.CommentedCode { color: #6c6c6c; } .Normal { color: #eeeeee; background-color: #080808; padding-bottom: 1px; } +.Identifier { color: #fcb165; } --> @@ -95,6 +96,7 @@ Routines.clear(); assert(Current_routine); assert(Current_routine->state == RUNNING); trace(9990, "schedule") << current_routine_label() << end(); +//? cerr << "schedule: " << current_routine_label() << '\n'; run_current_routine(Scheduling_interval); // Scheduler State Transitions if (Current_routine->completed()) @@ -104,6 +106,7 @@ Routines.clear(); // Scheduler Cleanup // End Scheduler Cleanup } + // End Run Routine } bool all_routines_done() { @@ -128,8 +131,12 @@ Routines.clear(); } string current_routine_label() { + return routine_label(Current_routine); +} + +string routine_label(routine* r) { ostringstream result; - const call_stack& calls = Current_routine->calls; + const call_stack& calls = r->calls; for (call_stack::const_iterator p = calls.begin(); p != calls.end(); ++p) { if (p != calls.begin()) result << '/'; result << get(Recipe, p->running_recipe).name; @@ -172,7 +179,7 @@ Current_routine = NULL;1; :(before "End routine Constructor") id = Next_routine_id; -Next_routine_id++; +++Next_routine_id; //: routines save the routine that spawned them :(before "End routine Fields") -- cgit 1.4.1-2-gfad0