3 ms·
Yes, that was about the original Go documentation. The suggestion still doesn't mention that the difficultly with sync/atomic isn't the memory model per-se but
by karmakaze 5y ago
Yes, that was about the original Go documentation. The suggestion still doesn't mention that the difficultly with sync/atomic isn't the memory model per-se but rather the lack of yielding to another goroutine.
- Groxx 5y agoSomething like `runtime.Gosched()`? https://pkg.go.dev/runtime#Gosched https://pkg.go.dev/runtime#Gosched