Move common ThreadPool code to shared CoreLib partition. (#22115)
commit9fe6dcb374b66079c8769abfb683a5b30807f1b4
authorFilip Navara <filip.navara@gmail.com>
Wed, 23 Jan 2019 21:35:11 +0000 (23 22:35 +0100)
committerMarek Safar <marek.safar@gmail.com>
Wed, 23 Jan 2019 23:09:19 +0000 (24 00:09 +0100)
treeba76b4f46f6f01315bb1c80892b5653f21223472
parente060c5b0f00108e2a612cb42a0764dbe7248149f
Move common ThreadPool code to shared CoreLib partition. (#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.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
netcore/System.Private.CoreLib/shared/System/Threading/ThreadPool.cs [new file with mode: 0644]