Skip to content
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

单例模式-go语言实现不是线程安全的 #1

Open
wangfeiing opened this issue Jul 12, 2019 · 0 comments
Open

单例模式-go语言实现不是线程安全的 #1

wangfeiing opened this issue Jul 12, 2019 · 0 comments

Comments

@wangfeiing
Copy link

在代码文件中 Singleton/GO/singleton/singleton.go 多协程的场景下不是线程安全的,推荐使用 sync.Once 来实现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant