diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-29 17:06:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-29 17:06:48 -0700 |
commit | ef69c56c82e85e83014605f501110697d81bcdc1 (patch) | |
tree | 7d1794a21701db7ecac84f747d165470daba7fc2 /075channel.mu | |
parent | 358aa35d306571511a4a8027d7033ffe37e8812d (diff) | |
download | mu-ef69c56c82e85e83014605f501110697d81bcdc1.tar.gz |
3608 - concurrent writes to fake file system
Diffstat (limited to '075channel.mu')
-rw-r--r-- | 075channel.mu | 4 |
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 [ |