PrintingServices.Unix.cs thread safety, Issue dotnet/corefx#24268 (dotnet/corefx...
authorCody <cojacfar@gmail.com>
Wed, 13 Nov 2019 21:18:42 +0000 (13:18 -0800)
committerDan Moseley <danmose@microsoft.com>
Wed, 13 Nov 2019 21:18:42 +0000 (13:18 -0800)
commitb637badcced7813ad942f6f55c496c12a06d2808
tree865efe433fecd15926af28771b53df7d2f9159c2
parent6d1ec2ab17e29e48ad847e7d0997e0ea364a99ef
PrintingServices.Unix.cs thread safety, Issue dotnet/corefx#24268 (dotnet/corefx#37724)

* Fix thread-safety of LoadPrinters in PrintingServices.Unix.cs

* Restructure lazy initialization in PrintingServices.Unix.cs

Commit migrated from https://github.com/dotnet/corefx/commit/cf64918877d98577363bb40d5eafac52beb80a79
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/PrintingServices.Unix.cs