about summary refs log tree commit diff stats
path: root/075channel.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-29 17:06:48 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-29 17:06:48 -0700
commitef69c56c82e85e83014605f501110697d81bcdc1 (patch)
tree7d1794a21701db7ecac84f747d165470daba7fc2 /075channel.mu
parent358aa35d306571511a4a8027d7033ffe37e8812d (diff)
downloadmu-ef69c56c82e85e83014605f501110697d81bcdc1.tar.gz
3608 - concurrent writes to fake file system
Diffstat (limited to '075channel.mu')
-rw-r--r--075channel.mu4
1 files changed, 4 insertions, 0 deletions
diff --git a/075channel.mu b/075channel.mu
index a023b294..985292a3 100644
--- a/075channel.mu
+++ b/075channel.mu
@@ -9,6 +9,10 @@
 #   b) Writing to a channel implicitly performs a deep copy. This prevents
 #   addresses from being shared between routines, and therefore eliminates all
 #   possibility of race conditions.
+#
+# There's still a narrow window for race conditions: the ingredients passed in
+# to 'start-running'. Pass only channels into routines and you should be fine.
+# Any other mutable ingredients will require locks.
 
 scenario channel [
   run [