1 instantiation of PortableThreadPool
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (1)
74public static readonly PortableThreadPool ThreadPoolInstance = new PortableThreadPool();
35 references to PortableThreadPool
System.Private.CoreLib (35)
src\libraries\System.Private.CoreLib\src\System\Threading\CompleteWaitThreadPoolWorkItem.cs (1)
13void IThreadPoolWorkItem.Execute() => PortableThreadPool.CompleteWait(_registeredWaitHandle, _timedOut);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (2)
74public static readonly PortableThreadPool ThreadPoolInstance = new PortableThreadPool(); 499PortableThreadPool.ThreadPoolInstance.RegisterWaitHandle(registeredWaitHandle);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (5)
51PortableThreadPool threadPoolInstance = ThreadPoolInstance; 200public static void Wake(PortableThreadPool threadPoolInstance) 209private static bool SufficientDelaySinceLastDequeue(PortableThreadPool threadPoolInstance) 226internal static void EnsureRunning(PortableThreadPool threadPoolInstance) 237internal static void EnsureRunningSlow(PortableThreadPool threadPoolInstance)
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (1)
307PortableThreadPool threadPoolInstance = ThreadPoolInstance;
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (2)
291PortableThreadPool threadPoolInstance = ThreadPoolInstance; 440PortableThreadPool threadPoolInstance = ThreadPoolInstance;
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.cs (7)
76PortableThreadPool threadPoolInstance = ThreadPoolInstance; 129private static void WorkerDoWork(PortableThreadPool threadPoolInstance, ref bool spinWait) 179private static bool ShouldExitWorker(PortableThreadPool threadPoolInstance, LowLevelLock threadAdjustmentLock) 240private static void RemoveWorkingWorker(PortableThreadPool threadPoolInstance) 270internal static void MaybeAddWorkingWorker(PortableThreadPool threadPoolInstance) 321internal static bool ShouldStopProcessingWorkNow(PortableThreadPool threadPoolInstance) 351private static bool TakeActiveRequest(PortableThreadPool threadPoolInstance)
src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (2)
51/// The <see cref="PortableThreadPool.WaitThread"/> this <see cref="RegisteredWaitHandle"/> was registered on. 53internal PortableThreadPool.WaitThread? WaitThread { get; set; }
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPool.Unix.cs (15)
26PortableThreadPool.ThreadPoolInstance.GetOrCreateThreadLocalCompletionCountObject(); 29PortableThreadPool.ThreadPoolInstance.SetMaxThreads(workerThreads, completionPortThreads); 33PortableThreadPool.ThreadPoolInstance.GetMaxThreads(out workerThreads, out completionPortThreads); 37PortableThreadPool.ThreadPoolInstance.SetMinThreads(workerThreads, completionPortThreads); 41PortableThreadPool.ThreadPoolInstance.GetMinThreads(out workerThreads, out completionPortThreads); 46PortableThreadPool.ThreadPoolInstance.GetAvailableThreads(out workerThreads, out completionPortThreads); 52PortableThreadPool.ThreadPoolInstance.NotifyWorkItemProgress(); 56PortableThreadPool.ThreadPoolInstance.NotifyThreadBlocked(); 60PortableThreadPool.ThreadPoolInstance.NotifyThreadUnblocked(); 65PortableThreadPool.ThreadPoolInstance.NotifyWorkItemComplete(threadLocalCompletionCountObject, currentTimeMs); 72PortableThreadPool.ThreadPoolInstance.RequestWorker(); 77PortableThreadPool.ThreadPoolInstance.ReportThreadStatus(isWorking); 89return PortableThreadPool.RegisterWaitForSingleObject(waitObject, callBack, state, millisecondsTimeOutInterval, executeOnlyOnce, flowExecutionContext); 116return PortableThreadPool.ThreadPoolInstance.ThreadCount; 130return PortableThreadPool.ThreadPoolInstance.CompletedWorkItemCount;