erezak / libphonenumber-csharp

Forking original c# port
Apache License 2.0
198 stars 79 forks source link

PhoneNumberUtil.GetInstance() - avoid locking #30

Open willnogueira opened 5 years ago

willnogueira commented 5 years ago

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.