Skip to content

PhoneNumberUtil.GetInstance() - avoid locking#30

Open
willnogueira wants to merge 1 commit intoerezak:masterfrom
willnogueira:master
Open

PhoneNumberUtil.GetInstance() - avoid locking#30
willnogueira wants to merge 1 commit intoerezak:masterfrom
willnogueira:master

Conversation

@willnogueira
Copy link
Copy Markdown

This change will avoid locking (and switching thread context) in a multi-threaded environment, when PhoneNumberUtil.GetInstance() is called.
It will still lock when the instance is not initialized yet.

@willnogueira willnogueira changed the title GetInstance() - avoid locking PhoneNumberUtil.GetInstance() - avoid locking Nov 1, 2018
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