Move common ThreadPool code to shared CoreLib partition. (dotnet/coreclr#22115)
authorFilip Navara <filip.navara@gmail.com>
Wed, 23 Jan 2019 21:35:11 +0000 (22:35 +0100)
committerJan Kotas <jkotas@microsoft.com>
Wed, 23 Jan 2019 21:35:11 +0000 (13:35 -0800)
commit5d0d2dc98c33c151b1cec37129f50f3ce020cf5e
treedaf9d261220966e2b04566cb4f1de32d588e7c77
parent9b01eaa0e3076c64486cd639350dc199f497f2b7
Move common ThreadPool code to shared CoreLib partition. (dotnet/coreclr#22115)

* Move common ThreadPool code to shared CoreLib partition.

* Move numWorkingThreads counting out of shared code.

* Rename ThreadPoolGlobals.vmTpInitialized to threadPoolInitialized.
Remove exception handling from ThreadPoolWorkQueue.Dispatch.
Remove obsolete code from ThreadPoolWorkQueue.Dispatch.
Rename ThreadPool.EnsureVMInitialized to ThreadPool.EnsureInitialized.

Commit migrated from https://github.com/dotnet/coreclr/commit/a0f81f59a7beb7120d3147c1547ef8ec1f05e0ae
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/Augments/RuntimeThread.cs
src/coreclr/src/System.Private.CoreLib/src/System/Threading/ThreadPool.CoreCLR.cs [new file with mode: 0644]
src/coreclr/src/vm/metasig.h
src/coreclr/src/vm/mscorlib.h
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPool.cs [moved from src/coreclr/src/System.Private.CoreLib/src/System/Threading/ThreadPool.cs with 73% similarity]