192 references to ThreadPool
aspire (1)
Processes\WindowsProcessInterop.cs (1)
718registration = ThreadPool.RegisterWaitForSingleObject(
Aspire.Hosting.Azure.Tests (2)
AcrLoginServiceTests.cs (2)
154ThreadPool.QueueUserWorkItem(_ => 188ThreadPool.QueueUserWorkItem(_ =>
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (2)
62ThreadPool.QueueUserWorkItem(s_runContinuation, continuation); 76ThreadPool.UnsafeQueueUserWorkItem(s_runContinuation, continuation);
Microsoft.AspNetCore.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
101ThreadPool.UnsafeQueueUserWorkItem(cts => ((CancellationTokenSource)cts!).Cancel(), _connectionClosedTokenSource);
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionContext.cs (4)
229ThreadPool.UnsafeQueueUserWorkItem(cts => ((CancellationTokenSource)cts!).Cancel(), _connectionClosedTokenSource); 730ThreadPool.UnsafeQueueUserWorkItem(cts => ((CancellationTokenSource)cts!).Cancel(), _connectionClosedTokenSource); 740ThreadPool.UnsafeQueueUserWorkItem(cts => ((CancellationTokenSource)cts!).Cancel(), _connectionClosedTokenSource); 1064ThreadPool.UnsafeQueueUserWorkItem(static cts => ((CancellationTokenSource)cts!).Cancel(), _connectionCloseRequested);
Microsoft.AspNetCore.Server.HttpSys (4)
MessagePump.cs (3)
128ThreadPool.UnsafeQueueUserWorkItem(state => state.ActivateRequestProcessingLimits(), this, preferLocal: false); 196ThreadPool.UnsafeQueueUserWorkItem(loop, preferLocal: false); 344ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
154ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
Microsoft.AspNetCore.Server.IIS (4)
Core\IISHttpContext.IO.cs (1)
262ThreadPool.UnsafeQueueUserWorkItem(ctx =>
Core\IISHttpServer.cs (1)
170ThreadPool.UnsafeQueueUserWorkItem(context, preferLocal: false);
Core\IO\AsyncIOOperation.cs (1)
154ThreadPool.UnsafeQueueUserWorkItem(Continuation, State, preferLocal: false);
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
154ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
Microsoft.AspNetCore.Server.Kestrel.Core (11)
DirectTlsEndpointOptions.cs (3)
41/// The callback is invoked on the <see cref="ThreadPool"/>, so a slow one does not hold up the handshakes or 70/// The callback is invoked on the <see cref="ThreadPool"/>, so a slow one does not hold up the handshakes or 86/// The callback is invoked on the <see cref="ThreadPool"/>, so a slow one does not hold up the handshakes or
Internal\ConnectionDispatcher.cs (2)
29ThreadPool.UnsafeQueueUserWorkItem(StartAcceptingConnectionsCore, listener, preferLocal: false); 68ThreadPool.UnsafeQueueUserWorkItem(kestrelConnection, preferLocal: false);
Internal\Http2\Http2Connection.cs (1)
1384ThreadPool.UnsafeQueueUserWorkItem(_currentHeadersStream, preferLocal: false);
Internal\Http3\Http3Connection.cs (3)
413ThreadPool.UnsafeQueueUserWorkItem(controlStream, preferLocal: false); 420ThreadPool.UnsafeQueueUserWorkItem(controlStream, preferLocal: false); 635ThreadPool.UnsafeQueueUserWorkItem(stream, preferLocal: false);
Internal\Http3\Http3Stream.cs (1)
973ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
154ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
TlsEventPump.UserCallbacks.cs (1)
153ThreadPool.UnsafeQueueUserWorkItem(callback, preferLocal: false);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
154ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicConnectionContext.cs (1)
138ThreadPool.UnsafeQueueUserWorkItem(state =>
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
154ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (3)
Internal\IOQueue.cs (1)
26System.Threading.ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
Internal\SocketAwaitableEventArgs.cs (1)
78ThreadPool.UnsafeQueueUserWorkItem(continuation, state, preferLocal: true);
Internal\SocketConnection.cs (1)
356ThreadPool.UnsafeQueueUserWorkItem(state =>
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
604ThreadPool.QueueUserWorkItem(_abortedCallback, this);
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
161ThreadPool.UnsafeQueueUserWorkItem(_ =>
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
1106ThreadPool.QueueUserWorkItem(delegate
Utilities\AwaitExtensions.cs (1)
116callbackHandles[i] = ThreadPool.RegisterWaitForSingleObject(
Microsoft.Build.Framework (1)
Utilities\ThreadPoolExtensions.cs (1)
22bool success = ThreadPool.QueueUserWorkItem(
Microsoft.Build.Tasks.Core (1)
GetSDKReferenceFiles.cs (1)
684ThreadPool.QueueUserWorkItem(sdkFilesCache.SaveAssemblyListToCacheFile, saveContext);
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (2)
62ThreadPool.QueueUserWorkItem(s_runContinuation, continuation); 76ThreadPool.UnsafeQueueUserWorkItem(s_runContinuation, continuation);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (2)
62ThreadPool.QueueUserWorkItem(s_runContinuation, continuation); 76ThreadPool.UnsafeQueueUserWorkItem(s_runContinuation, continuation);
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (2)
62ThreadPool.QueueUserWorkItem(s_runContinuation, continuation); 76ThreadPool.UnsafeQueueUserWorkItem(s_runContinuation, continuation);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (2)
62ThreadPool.QueueUserWorkItem(s_runContinuation, continuation); 76ThreadPool.UnsafeQueueUserWorkItem(s_runContinuation, continuation);
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (2)
62ThreadPool.QueueUserWorkItem(s_runContinuation, continuation); 76ThreadPool.UnsafeQueueUserWorkItem(s_runContinuation, continuation);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
2190ThreadPool.QueueUserWorkItem(delegate
Microsoft.Extensions.AsyncState.Tests (1)
AsyncStateTests.cs (1)
182ThreadPool.UnsafeQueueUserWorkItem(_ =>
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.StampedeStateT.cs (1)
58ThreadPool.UnsafeQueueUserWorkItem(this, false);
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
593ThreadPool.UnsafeQueueUserWorkItem(static s =>
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\DynamicServiceProviderEngine.cs (1)
34_ = ThreadPool.UnsafeQueueUserWorkItem(_ =>
Microsoft.ML.StandardTrainers (1)
Optimizer\DifferentiableFunction.cs (1)
126ThreadPool.QueueUserWorkItem(Eval, c);
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1176[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadPool))]
netstandard (1)
netstandard.cs (1)
2139[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadPool))]
NuGet.Protocol (2)
Plugins\Logging\ThreadPoolLogMessage.cs (2)
20ThreadPool.GetMinThreads(out _minWorkerThreads, out _minCompletionPortThreads); 21ThreadPool.GetMaxThreads(out _maxWorkerThreads, out _maxCompletionPortThreads);
PresentationCore (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
327ThreadPool.QueueUserWorkItem(callback, state);
PresentationFramework (5)
MS\Internal\Data\DefaultAsyncDataDispatcher.cs (1)
30ThreadPool.QueueUserWorkItem(new WaitCallback(ProcessRequest), request);
System\Windows\Data\ObjectDataProvider.cs (1)
298ThreadPool.QueueUserWorkItem(new WaitCallback(QueryWorker), null);
System\Windows\Data\XmlDataProvider.cs (3)
306ThreadPool.QueueUserWorkItem(new WaitCallback(BuildNodeCollectionAsynch), 373ThreadPool.QueueUserWorkItem(new WaitCallback(CreateDocFromExternalSourceAsynch), 419ThreadPool.QueueUserWorkItem(new WaitCallback(CreateDocFromInlineXmlAsync),
PresentationUI (2)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
1036System.Threading.ThreadPool.QueueUserWorkItem(new WaitCallback(CertificateStatusCheckWorkItem), threadInfo);
MS\Internal\Documents\RightsManagementManager.cs (1)
365if (ThreadPool.QueueUserWorkItem(new WaitCallback(RMEnrollThreadProc), rmEnrollThreadInfo))
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Dependencies\Threading\ConfiguredYieldAwaitable.cs (2)
62ThreadPool.QueueUserWorkItem(s_runContinuation, continuation); 76ThreadPool.UnsafeQueueUserWorkItem(s_runContinuation, continuation);
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbConnectionPool.cs (1)
1051ThreadPool.QueueUserWorkItem(_poolCreateRequest);
System.Data.OleDb (1)
System\Data\ProviderBase\DbConnectionPool.cs (1)
1588ThreadPool.QueueUserWorkItem(_poolCreateRequest);
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\RuntimeMetrics.cs (3)
100() => (long)ThreadPool.ThreadCount, 106() => ThreadPool.CompletedWorkItemCount, 112() => ThreadPool.PendingWorkItemCount,
System.Diagnostics.EventLog (2)
System\Diagnostics\EventLogInternal.cs (1)
430info.registeredWaitHandle = ThreadPool.RegisterWaitForSingleObject(info.waitHandle, new WaitOrTimerCallback(StaticCompletionCallback), info, -1, false);
System\Diagnostics\Reader\EventLogWatcher.cs (1)
201_registeredWaitHandle = ThreadPool.RegisterWaitForSingleObject(
System.Diagnostics.Process (4)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (2)
366registeredWaitHandle = ThreadPool.RegisterWaitForSingleObject( 439registeredWaitHandle = ThreadPool.RegisterWaitForSingleObject(
System\Diagnostics\AsyncStreamReader.cs (1)
249ThreadPool.QueueUserWorkItem(edi => ((ExceptionDispatchInfo)edi!).Throw(), ExceptionDispatchInfo.Capture(e));
System\Diagnostics\Process.Unix.cs (1)
237_registeredWaitHandle = ThreadPool.RegisterWaitForSingleObject(_waitHandle,
System.IO.Pipelines (2)
System\IO\Pipelines\ThreadPoolScheduler.netcoreapp.cs (2)
13System.Threading.ThreadPool.QueueUserWorkItem(action, state, preferLocal: true); 18System.Threading.ThreadPool.UnsafeQueueUserWorkItem(action, state, preferLocal: true);
System.IO.Ports (3)
System\IO\Ports\SerialStream.Unix.cs (3)
743ThreadPool.QueueUserWorkItem(s => { 754ThreadPool.QueueUserWorkItem(s => { 765ThreadPool.QueueUserWorkItem(s => {
System.Management (1)
System\Management\ManagementEventWatcher.cs (1)
690ThreadPool.QueueUserWorkItem(new WaitCallback(Cancel2));
System.Net.HttpListener (2)
System\Net\Managed\ListenerAsyncResult.Managed.cs (2)
78ThreadPool.UnsafeQueueUserWorkItem(s_invokeCB, this); 183ThreadPool.UnsafeQueueUserWorkItem(s_invokeCB, this);
System.Net.Sockets (5)
System\Net\Sockets\SocketAsyncContext.Unix.cs (2)
264ThreadPool.UnsafeQueueUserWorkItem(o => ((AsyncOperation)o!).InvokeCallback(allowPooling: false), this, preferLocal: true); 288ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: true);
System\Net\Sockets\SocketAsyncEngine.Unix.cs (3)
308ThreadPool.UnsafeQueueUserWorkItem(root, preferLocal: false); 404ThreadPool.UnsafeQueueUserWorkItem(left, preferLocal: true); 408ThreadPool.UnsafeQueueUserWorkItem(right, preferLocal: true);
System.Private.CoreLib (65)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (2)
883ThreadPool.s_dispatchRuntimeAsyncContinuationsCallback, 1222ThreadPool.UnsafeQueueUserWorkItemInternal(this, preferLocal: true);
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.RuntimeAsyncYielder.cs (1)
43ThreadPool.UnsafeQueueUserWorkItemInternal(raTask, preferLocal: false);
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeAsyncTaskContinuation.cs (2)
39ThreadPool.UnsafeQueueUserWorkItemInternal(RuntimeAsyncTask, preferLocal: true); 62ThreadPool.UnsafeQueueUserWorkItemInternal(RuntimeAsyncTask, preferLocal: true);
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs (1)
168ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: true);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (3)
86_threadPoolThreadCounter ??= new PollingCounter("threadpool-thread-count", this, () => ThreadPool.ThreadCount) { DisplayName = "ThreadPool Thread Count" }; 88_threadPoolQueueCounter ??= new PollingCounter("threadpool-queue-length", this, () => ThreadPool.PendingWorkItemCount) { DisplayName = "ThreadPool Queue Length" }; 89_completedItemsCounter ??= new IncrementingPollingCounter("threadpool-completed-items-count", this, () => ThreadPool.CompletedWorkItemCount) { DisplayName = "ThreadPool Completed Work Item Count", DisplayRateTimeScale = new TimeSpan(0, 0, 1) };
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConfiguredValueTaskAwaitable.cs (2)
113Unsafe.As<IValueTaskSource>(obj).OnCompleted(ThreadPool.s_invokeAsyncStateMachineBox, box, _value._token, 226Unsafe.As<IValueTaskSource<TResult>>(obj).OnCompleted(ThreadPool.s_invokeAsyncStateMachineBox, box, _value._token,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ValueTaskAwaiter.cs (2)
105Unsafe.As<IValueTaskSource>(obj).OnCompleted(ThreadPool.s_invokeAsyncStateMachineBox, box, _value._token, ValueTaskSourceOnCompletedFlags.UseSchedulingContext); 195Unsafe.As<IValueTaskSource<TResult>>(obj).OnCompleted(ThreadPool.s_invokeAsyncStateMachineBox, box, _value._token, ValueTaskSourceOnCompletedFlags.UseSchedulingContext);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (3)
101ThreadPool.QueueUserWorkItem(s_waitCallbackRunAction, continuation); 105ThreadPool.UnsafeQueueUserWorkItem(s_waitCallbackRunAction, continuation); 148ThreadPool.UnsafeQueueUserWorkItemInternal(box, preferLocal: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
115ThreadPool.UnsafeQueueUserWorkItem(HandleSignal, (signo, tokens));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (1)
115if (ThreadPool.EnableWorkerTracking && NativeRuntimeEventSource.Log.IsEnabled())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (1)
386ThreadPool.UnsafeQueueHighPriorityWorkItemInternal(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (1)
12/// An object representing the registration of a <see cref="WaitHandle"/> via <see cref="ThreadPool.RegisterWaitForSingleObject"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Unix.cs (1)
11/// An object representing the registration of a <see cref="WaitHandle"/> via <see cref="ThreadPool.RegisterWaitForSingleObject"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SynchronizationContext.cs (1)
25=> ThreadPool.QueueUserWorkItem(static s => s.Key(s.Value), new KeyValuePair<SendOrPostCallback, object?>(d, state), preferLocal: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (2)
209ThreadPool.QueueUserWorkItem(static state => 351ThreadPool.UnsafeQueueUserWorkItemInternal(workItem, preferLocal: !fairly);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (4)
204ThreadPool.UnsafeQueueUserWorkItem(continuation, state, preferLocal: true); 208ThreadPool.QueueUserWorkItem(continuation, state, preferLocal: true); 248ThreadPool.UnsafeQueueUserWorkItem(continuation, state, preferLocal: true); 349ThreadPool.QueueUserWorkItem(continuation, continuationState, preferLocal: true);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (7)
2747ThreadPool.UnsafeQueueUserWorkItemInternal(stateMachineBox, preferLocal: true); 3242bool notifyWhenUnblocked = ThreadPool.NotifyThreadBlocked(); 3251ThreadPool.NotifyThreadUnblocked(); 3260bool notifyWhenUnblocked = ThreadPool.NotifyThreadBlocked(); 3269ThreadPool.NotifyThreadUnblocked(); 3796ThreadPool.UnsafeQueueUserWorkItemInternal(new CompletionActionInvoker(completionAction, this), preferLocal: true); 7645ThreadPool.UnsafeQueueUserWorkItem(static state =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (3)
598ThreadPool.UnsafeQueueUserWorkItemInternal(this, preferLocal: true); 808ThreadPool.UnsafeQueueUserWorkItemInternal(box, preferLocal: true); 842ThreadPool.UnsafeQueueUserWorkItemInternal(atc, preferLocal: true);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (1)
683ThreadPool.RegisterWaitForSingleObject(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ThreadPoolTaskScheduler.cs (5)
58ThreadPool.UnsafeQueueUserWorkItemInternal(task, (options & TaskCreationOptions.PreferFairness) == 0); 73if (taskWasPreviouslyQueued && !ThreadPool.TryPopCustomWorkItem(task)) 92return ThreadPool.TryPopCustomWorkItem(task); 97return FilterTasksFromWorkItems(ThreadPool.GetQueuedWorkItems()); 116ThreadPool.NotifyWorkItemProgress();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (3)
423_name = ThreadPool.WorkerThreadName; 424ThreadNameChanged(ThreadPool.WorkerThreadName); 449if (_name != ThreadPool.WorkerThreadName)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (16)
570ThreadPool.EnsureWorkerRequested(); 640ThreadPool.EnsureWorkerRequested(); 688ThreadPool.EnsureWorkerRequested(); 704ThreadPoolWorkQueue queue = ThreadPool.s_workQueue; 730ThreadPool.EnsureWorkerRequested(); 895ThreadPoolWorkQueue workQueue = ThreadPool.s_workQueue; 917ThreadPool.EnsureWorkerRequested(); 930ThreadPool.EnsureWorkerRequested(); 977ThreadPool.EnsureWorkerRequested(); 1000if (ThreadPool.EnableWorkerTracking) 1025if (!ThreadPool.NotifyWorkItemComplete(threadLocalCompletionCountNode!, currentTickCount)) 1048if (ThreadPool.YieldFromDispatchLoop(currentTickCount)) 1080Debug.Assert(ThreadPool.EnableWorkerTracking); 1086ThreadPool.ReportThreadStatus(isWorking: true); 1093ThreadPool.ReportThreadStatus(isWorking: false); 1144threadLocalCompletionCountNode = ThreadPool.GetOrCreateThreadLocalCompletionCountNode();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (1)
268ThreadPool.UnsafeQueueUserWorkItemInternal(timer, preferLocal: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (1)
128ThreadPool.UnsafeQueueHighPriorityWorkItemInternal(timerToFire);
System.ServiceModel.Primitives (1)
Internals\System\Runtime\IOThreadScheduler.cs (1)
532ThreadPool.UnsafeQueueNativeOverlapped(_nativeOverlapped);
System.ServiceProcess.ServiceController (8)
System\ServiceProcess\ServiceBase.cs (8)
713ThreadPool.QueueUserWorkItem(_ => DeferredPowerEvent(eventType)); 723ThreadPool.QueueUserWorkItem(_ => DeferredSessionChange(eventType, sessionNotification.sessionId)); 763ThreadPool.QueueUserWorkItem(_ => DeferredContinue()); 774ThreadPool.QueueUserWorkItem(_ => DeferredPause()); 795ThreadPool.QueueUserWorkItem(_ => DeferredStop()); 805ThreadPool.QueueUserWorkItem(_ => DeferredShutdown()); 809ThreadPool.QueueUserWorkItem(_ => DeferredCustomCommand(command)); 919ThreadPool.QueueUserWorkItem(new WaitCallback(this.ServiceQueuedMainCallback!), args);
System.Speech (4)
Internal\AsyncSerializedWorker.cs (1)
235ThreadPool.QueueUserWorkItem(_workerCallback, null);
Internal\SapiInterop\EventNotify.cs (1)
22ThreadPool.QueueUserWorkItem(new WaitCallback(eventNotify.SendNotification));
Recognition\RecognizerBase.cs (2)
132if (!ThreadPool.QueueUserWorkItem(new WaitCallback(LoadGrammarAsyncCallback), grammar)) 552if (!ThreadPool.QueueUserWorkItem(new WaitCallback(RecognizeAsyncWaitForGrammarsToLoad)))
System.Threading.Channels (3)
System\Threading\Channels\AsyncOperation.netcoreapp.cs (1)
11ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
System\Threading\Channels\ChannelUtilities.netcoreapp.cs (2)
9ThreadPool.UnsafeQueueUserWorkItem(action, state, preferLocal: false); 12ThreadPool.QueueUserWorkItem(action, state, preferLocal: false);
System.Threading.Tasks.Dataflow (1)
Internal\Common.cs (1)
303ThreadPool.QueueUserWorkItem(static state => { ((ExceptionDispatchInfo)state!).Throw(); }, edi);
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
576ThreadPool.UnsafeQueueUserWorkItem(this, preferLocal: false);
System.Threading.ThreadPool (1)
src\runtime\artifacts\obj\System.Threading.ThreadPool\Release\net11.0\System.Threading.ThreadPool.Forwards.cs (1)
5[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadPool))]
System.Transactions.Local (7)
System\Transactions\Oletx\OletxTransactionManager.cs (1)
370ThreadPool.UnsafeRegisterWaitForSingleObject(
System\Transactions\TransactionState.cs (2)
2835if (!ThreadPool.QueueUserWorkItem(SignalMethod, tx)) 3946if (!ThreadPool.QueueUserWorkItem(SignalMethod, tx))
System\Transactions\VolatileEnlistmentMultiplexing.cs (4)
95if (!ThreadPool.QueueUserWorkItem(PrepareCallback, demux)) 134if (!ThreadPool.QueueUserWorkItem(CommitCallback, demux)) 173if (!ThreadPool.QueueUserWorkItem(RollbackCallback, demux)) 212if (!ThreadPool.QueueUserWorkItem(InDoubtCallback, demux))
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
327ThreadPool.QueueUserWorkItem(callback, state);
vstest.console (2)
CommandLine\Executor.cs (2)
98ThreadPool.GetMinThreads(out var workerThreads, out var completionPortThreads); 99ThreadPool.SetMinThreads(workerThreads + additionalThreadsCount, completionPortThreads + additionalThreadsCount);
vstest.console.arm64 (2)
src\vstest\src\vstest.console\CommandLine\Executor.cs (2)
98ThreadPool.GetMinThreads(out var workerThreads, out var completionPortThreads); 99ThreadPool.SetMinThreads(workerThreads + additionalThreadsCount, completionPortThreads + additionalThreadsCount);