Skip to content

Update RightLazySingleton.java - #3

Open
agent-smith wants to merge 1 commit into
dhinojosa:masterfrom
agent-smith:patch-1
Open

Update RightLazySingleton.java#3
agent-smith wants to merge 1 commit into
dhinojosa:masterfrom
agent-smith:patch-1

Conversation

@agent-smith

Copy link
Copy Markdown

Double-check locking makes this perform better, so we don't take on the overhead of context switching threads every time getInstance() is called.

Double-check locking makes this perform better, so we don't take on the overhead of context switching threads every time getInstance() is called.
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.

1 participant