1 instantiation of PortableThreadPool
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (1)
74
public 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)
13
void IThreadPoolWorkItem.Execute() =>
PortableThreadPool
.CompleteWait(_registeredWaitHandle, _timedOut);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.cs (2)
74
public static readonly
PortableThreadPool
ThreadPoolInstance = new PortableThreadPool();
519
PortableThreadPool
.ThreadPoolInstance.RegisterWaitHandle(registeredWaitHandle);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (5)
51
PortableThreadPool
threadPoolInstance = ThreadPoolInstance;
200
public static void Wake(
PortableThreadPool
threadPoolInstance)
209
private static bool SufficientDelaySinceLastDequeue(
PortableThreadPool
threadPoolInstance)
226
internal static void EnsureRunning(
PortableThreadPool
threadPoolInstance)
237
internal static void EnsureRunningSlow(
PortableThreadPool
threadPoolInstance)
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (1)
307
PortableThreadPool
threadPoolInstance = ThreadPoolInstance;
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (2)
291
PortableThreadPool
threadPoolInstance = ThreadPoolInstance;
440
PortableThreadPool
threadPoolInstance = ThreadPoolInstance;
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.cs (6)
69
PortableThreadPool
threadPoolInstance = ThreadPoolInstance;
122
private static void WorkerDoWork(
PortableThreadPool
threadPoolInstance)
151
private static bool ShouldExitWorker(
PortableThreadPool
threadPoolInstance, LowLevelLock threadAdjustmentLock)
215
private static bool TryRemoveWorkingWorker(
PortableThreadPool
threadPoolInstance)
237
internal static void MaybeAddWorkingWorker(
PortableThreadPool
threadPoolInstance)
280
internal 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.
54
internal
PortableThreadPool
.WaitThread? WaitThread { get; set; }
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPool.Unix.cs (16)
24
PortableThreadPool
.ThreadPoolInstance.NotifyDispatchProgress(currentTickCount);
30
PortableThreadPool
.ThreadPoolInstance.GetOrCreateThreadLocalCompletionCountNode();
33
PortableThreadPool
.ThreadPoolInstance.SetMaxThreads(workerThreads, completionPortThreads);
37
PortableThreadPool
.ThreadPoolInstance.GetMaxThreads(out workerThreads, out completionPortThreads);
41
PortableThreadPool
.ThreadPoolInstance.SetMinThreads(workerThreads, completionPortThreads);
45
PortableThreadPool
.ThreadPoolInstance.GetMinThreads(out workerThreads, out completionPortThreads);
50
PortableThreadPool
.ThreadPoolInstance.GetAvailableThreads(out workerThreads, out completionPortThreads);
56
PortableThreadPool
.ThreadPoolInstance.NotifyWorkItemProgress();
60
PortableThreadPool
.ThreadPoolInstance.NotifyThreadBlocked();
64
PortableThreadPool
.ThreadPoolInstance.NotifyThreadUnblocked();
69
PortableThreadPool
.ThreadPoolInstance.NotifyWorkItemComplete(threadLocalCompletionCountNode, currentTimeMs);
76
PortableThreadPool
.ThreadPoolInstance.EnsureWorkerRequested();
81
PortableThreadPool
.ThreadPoolInstance.ReportThreadStatus(isWorking);
93
return
PortableThreadPool
.RegisterWaitForSingleObject(waitObject, callBack, state, millisecondsTimeOutInterval, executeOnlyOnce, flowExecutionContext);
120
return
PortableThreadPool
.ThreadPoolInstance.ThreadCount;
134
return
PortableThreadPool
.ThreadPoolInstance.CompletedWorkItemCount;