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

singleton: double-check inside the lock #7

Merged
merged 1 commit into from Apr 5, 2023

Conversation

wandh
Copy link
Contributor

@wandh wandh commented Apr 1, 2023

Double-check inside the lock, otherwise, there may be duplicate creations.

Double-check inside the lock, otherwise, there may be duplicate creations.
@mohuishou mohuishou changed the title Update singleton_lazy.go singleton: double-check inside the lock Apr 5, 2023
@mohuishou mohuishou merged commit 951a5dd into mohuishou:master Apr 5, 2023
1 check failed
mohuishou added a commit that referenced this pull request May 5, 2023
- fix: 修复单测问题 #12
- fix: #10 移除不必要的判断,  revert #7
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

Successfully merging this pull request may close these issues.

None yet

2 participants