Re: [go-nuts] A question about race conditions

2017-06-30 Thread Peter Waller
Can you provide example code which demonstrates the problem? What you are describing is not expected. Reading and writing to channels simultaneously with the `<-` operator from multiple goroutines should not generate memory race conditions by themselves, but concurrency is complicated and it is st

[go-nuts] A question about race conditions

2017-06-30 Thread fusi . enrico . maria
Hello All I have a question about the use of race condition detector. (compiling with -race options, to be precise). I have a program which has a channel (size 1024): one goroutine is reading and one is writing. When I compile using -race , the detector says there is a race condition on the