-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原子操作有问题 #1
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如上的代码中
atomic.AddUint64
中传入的数必须是uint64,在注释上说明了减法用类似AddUint64(&x, ^uint64(c-1))
的形式。正确的写法也可参考:go.uber.org/atomic
The text was updated successfully, but these errors were encountered: