about summary refs log tree commit diff stats
path: root/072scheduler.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-16 15:26:52 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-16 15:36:03 -0700
commit19695cc7ca16d9129ed3ef2b46bf3460452dd6db (patch)
tree224219b138a7da35e305a384e2c172d1baf06004 /072scheduler.cc
parent3eb81335c160e43fd8cce25c93a7fd4c8ffbaaa2 (diff)
downloadmu-19695cc7ca16d9129ed3ef2b46bf3460452dd6db.tar.gz
3201
Diffstat (limited to '072scheduler.cc')
-rw-r--r--072scheduler.cc1
1 files changed, 1 insertions, 0 deletions
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;
   }