On Sun, Aug 5, 2018 at 7:28 PM <grap...@berkeley.edu> wrote:

> It is also my understanding that writes within a locked region that are
read in some fast path without holding the lock need to be atomic writes.
And the write to c.closed in closechan is NOT atomic.

Code path protected by a mutex does nor execute concurrently. No need for
atomic R/W ops.

-- 

-j

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to