Make Lazy initialization of TextInfo::m_IsAsciiCasingSameAsInvariant thread safe...
authorJose Manuel Heredia Hidalgo <joheredi@microsoft.com>
Thu, 1 Sep 2016 21:24:22 +0000 (14:24 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 1 Sep 2016 21:24:22 +0000 (14:24 -0700)
commit4db7be96b2539675e9fae5147ef2f99f279831c1
treeb1b776bd0f984928131caa7db305531d6dacf3ec
parentbbf8b5548b91968a84eecbb4628126b3f1b4366a
Make Lazy initialization of TextInfo::m_IsAsciiCasingSameAsInvariant thread safe (dotnet/coreclr#7021)

Replace bool? with Tristate enum to make it thread safe. Also use Tristate instead of TurkishCasing enum

Commit migrated from https://github.com/dotnet/coreclr/commit/3b9140c30e647f7ff5b42b01031de43268258639
src/coreclr/src/mscorlib/corefx/System/Globalization/TextInfo.Unix.cs
src/coreclr/src/mscorlib/corefx/System/Globalization/TextInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/TextInfo.cs