When do you need to use mutexes? Which begs the question: When can multiple coroutines trample on memory or a variable? Doesn't each instance of a go routine get it's own stack (so, it's own local copy of local vars). It would seem that the only entities that it's possible to access from multiple goroutines are things allocated from the heap, as you mould have identical pointer values in multiple go threads - yes?
Like they say, Inquiring minds want to know... Thanks, Joe -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a1fdcdb2-3276-4b67-88be-5414c12ccac5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.