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();
499
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 (7)
76
PortableThreadPool
threadPoolInstance = ThreadPoolInstance;
129
private static void WorkerDoWork(
PortableThreadPool
threadPoolInstance, ref bool spinWait)
179
private static bool ShouldExitWorker(
PortableThreadPool
threadPoolInstance, LowLevelLock threadAdjustmentLock)
240
private static void RemoveWorkingWorker(
PortableThreadPool
threadPoolInstance)
270
internal static void MaybeAddWorkingWorker(
PortableThreadPool
threadPoolInstance)
321
internal static bool ShouldStopProcessingWorkNow(
PortableThreadPool
threadPoolInstance)
351
private 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.
53
internal
PortableThreadPool
.WaitThread? WaitThread { get; set; }
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPool.Unix.cs (15)
26
PortableThreadPool
.ThreadPoolInstance.GetOrCreateThreadLocalCompletionCountObject();
29
PortableThreadPool
.ThreadPoolInstance.SetMaxThreads(workerThreads, completionPortThreads);
33
PortableThreadPool
.ThreadPoolInstance.GetMaxThreads(out workerThreads, out completionPortThreads);
37
PortableThreadPool
.ThreadPoolInstance.SetMinThreads(workerThreads, completionPortThreads);
41
PortableThreadPool
.ThreadPoolInstance.GetMinThreads(out workerThreads, out completionPortThreads);
46
PortableThreadPool
.ThreadPoolInstance.GetAvailableThreads(out workerThreads, out completionPortThreads);
52
PortableThreadPool
.ThreadPoolInstance.NotifyWorkItemProgress();
56
PortableThreadPool
.ThreadPoolInstance.NotifyThreadBlocked();
60
PortableThreadPool
.ThreadPoolInstance.NotifyThreadUnblocked();
65
PortableThreadPool
.ThreadPoolInstance.NotifyWorkItemComplete(threadLocalCompletionCountObject, currentTimeMs);
72
PortableThreadPool
.ThreadPoolInstance.RequestWorker();
77
PortableThreadPool
.ThreadPoolInstance.ReportThreadStatus(isWorking);
89
return
PortableThreadPool
.RegisterWaitForSingleObject(waitObject, callBack, state, millisecondsTimeOutInterval, executeOnlyOnce, flowExecutionContext);
116
return
PortableThreadPool
.ThreadPoolInstance.ThreadCount;
130
return
PortableThreadPool
.ThreadPoolInstance.CompletedWorkItemCount;