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(); 519PortableThreadPool.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 (6)
69PortableThreadPool threadPoolInstance = ThreadPoolInstance; 122private static void WorkerDoWork(PortableThreadPool threadPoolInstance) 151private static bool ShouldExitWorker(PortableThreadPool threadPoolInstance, LowLevelLock threadAdjustmentLock) 215private static bool TryRemoveWorkingWorker(PortableThreadPool threadPoolInstance) 237internal static void MaybeAddWorkingWorker(PortableThreadPool threadPoolInstance) 280internal static bool ShouldStopProcessingWorkNow(PortableThreadPool threadPoolInstance)
src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (2)
52/// The <see cref="PortableThreadPool.WaitThread"/> this <see cref="RegisteredWaitHandle"/> was registered on. 54internal PortableThreadPool.WaitThread? WaitThread { get; set; }
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPool.Unix.cs (16)
24PortableThreadPool.ThreadPoolInstance.NotifyDispatchProgress(currentTickCount); 30PortableThreadPool.ThreadPoolInstance.GetOrCreateThreadLocalCompletionCountNode(); 33PortableThreadPool.ThreadPoolInstance.SetMaxThreads(workerThreads, completionPortThreads); 37PortableThreadPool.ThreadPoolInstance.GetMaxThreads(out workerThreads, out completionPortThreads); 41PortableThreadPool.ThreadPoolInstance.SetMinThreads(workerThreads, completionPortThreads); 45PortableThreadPool.ThreadPoolInstance.GetMinThreads(out workerThreads, out completionPortThreads); 50PortableThreadPool.ThreadPoolInstance.GetAvailableThreads(out workerThreads, out completionPortThreads); 56PortableThreadPool.ThreadPoolInstance.NotifyWorkItemProgress(); 60PortableThreadPool.ThreadPoolInstance.NotifyThreadBlocked(); 64PortableThreadPool.ThreadPoolInstance.NotifyThreadUnblocked(); 69PortableThreadPool.ThreadPoolInstance.NotifyWorkItemComplete(threadLocalCompletionCountNode, currentTimeMs); 76PortableThreadPool.ThreadPoolInstance.EnsureWorkerRequested(); 81PortableThreadPool.ThreadPoolInstance.ReportThreadStatus(isWorking); 93return PortableThreadPool.RegisterWaitForSingleObject(waitObject, callBack, state, millisecondsTimeOutInterval, executeOnlyOnce, flowExecutionContext); 120return PortableThreadPool.ThreadPoolInstance.ThreadCount; 134return PortableThreadPool.ThreadPoolInstance.CompletedWorkItemCount;