From 19695cc7ca16d9129ed3ef2b46bf3460452dd6db Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 16 Aug 2016 15:26:52 -0700 Subject: 3201 --- 020run.cc | 2 +- 072scheduler.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/020run.cc b/020run.cc index 2f4a2ca4..6a68e360 100644 --- a/020run.cc +++ b/020run.cc @@ -336,7 +336,7 @@ inline bool scalar(const vector& x) { } // helper for tests -void run(string form) { +void run(const string& form) { vector tmp = load(form); transform_all(); if (tmp.empty()) return; diff --git a/072scheduler.cc b/072scheduler.cc index c6660206..61d759ea 100644 --- a/072scheduler.cc +++ b/072scheduler.cc @@ -304,6 +304,7 @@ def f1 [ for (int i = 0; i < SIZE(Routines); ++i) { if (Routines.at(i)->state == COMPLETED) continue; if (Routines.at(i)->parent_index < 0) continue; // root thread + // structured concurrency: http://250bpm.com/blog:71 if (has_completed_parent(i)) { Routines.at(i)->state = COMPLETED; } -- cgit 1.4.1-2-gfad0