about summary refs log tree commit diff stats
path: root/cpp/038scheduler.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-01 15:25:47 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-01 15:25:47 -0700
commit5eddbc16fbd437eeec6cd490cd4280cc9e414b30 (patch)
tree0aa6fbc5407680859c8f0d61906c61e15a4bcb18 /cpp/038scheduler.cc
parentd90fce40b7760bac27632da3ee08cb51de9d07a0 (diff)
downloadmu-5eddbc16fbd437eeec6cd490cd4280cc9e414b30.tar.gz
1229
Diffstat (limited to 'cpp/038scheduler.cc')
-rw-r--r--cpp/038scheduler.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/038scheduler.cc b/cpp/038scheduler.cc
index 76b90933..3550ff1f 100644
--- a/cpp/038scheduler.cc
+++ b/cpp/038scheduler.cc
@@ -3,7 +3,7 @@
 
 :(scenario scheduler)
 recipe f1 [
-  run f2:recipe
+  start-running f2:recipe
   1:integer <- copy 3:literal
 ]
 recipe f2 [
@@ -86,11 +86,11 @@ for (size_t i = 0; i < Routines.size(); ++i)
 Routines.clear();
 
 :(before "End Primitive Recipe Declarations")
-RUN,
+START_RUNNING,
 :(before "End Primitive Recipe Numbers")
-Recipe_number["run"] = RUN;
+Recipe_number["start-running"] = START_RUNNING;
 :(before "End Primitive Recipe Implementations")
-case RUN: {
+case START_RUNNING: {
   trace("run") << "ingredient 0 is " << current_instruction().ingredients[0].name;
   assert(!current_instruction().ingredients[0].initialized);
   Routines.push_back(new routine(Recipe_number[current_instruction().ingredients[0].name]));
@@ -100,7 +100,7 @@ case RUN: {
 :(scenario scheduler_interleaves_routines)
 % Scheduling_interval = 1;
 recipe f1 [
-  run f2:recipe
+  start-running f2:recipe
   1:integer <- copy 0:literal
   2:integer <- copy 0:literal
 ]