Re: [go-nuts] Uncontrolled map access can crash the program --- how?

2017-07-05 Thread 'Thomas Bushnell, BSG' via golang-nuts
On Wed, Jul 5, 2017 at 12:29 PM Peter Kleiweg wrote: > From the faq: https://golang.org/doc/faq#atomic_maps > > ... uncontrolled map access can crash the program. > > In what situations does this apply? > > Can I have two goroutines reading a single map at the same time?

[go-nuts] Uncontrolled map access can crash the program --- how?

2017-07-05 Thread Peter Kleiweg
>From the faq: https://golang.org/doc/faq#atomic_maps ... uncontrolled map access can crash the program. In what situations does this apply? Can I have two goroutines reading a single map at the same time? Can I have one goroutine putting something in a map while at the same time another