182 references to ThreadPool
mscorlib (35)
system\console.cs (1)
1758
if (!
ThreadPool
.QueueUserWorkItem(controlCCallback, delegateData)) {
system\io\filestream.cs (3)
271
ThreadPool
.QueueUserWorkItem(state => ((FileStreamAsyncResult)state).CallUserCallbackWorker(), this);
913
b =
ThreadPool
.BindHandle(_handle);
1050
b =
ThreadPool
.BindHandle(_handle);
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
1034
ThreadPool
.QueueUserWorkItem(state => ((ExceptionDispatchInfo)state).Throw(), edi);
system\runtime\compilerservices\YieldAwaitable.cs (2)
113
ThreadPool
.QueueUserWorkItem(s_waitCallbackRunAction, continuation);
117
ThreadPool
.UnsafeQueueUserWorkItem(s_waitCallbackRunAction, continuation);
system\runtime\remoting\crossappdomainchannel.cs (1)
608
ThreadPool
.QueueUserWorkItem(threadFunc);
system\runtime\remoting\crosscontextchannel.cs (1)
292
ThreadPool
.QueueUserWorkItem(threadFunc);
system\runtime\remoting\lease.cs (1)
478
ThreadPool
.QueueUserWorkItem(threadFunc, iar);
system\runtime\remoting\remotingproxy.cs (1)
522
ThreadPool
.QueueUserWorkItem(
system\runtime\remoting\synchronizeddispatch.cs (1)
261
_waitHandle =
ThreadPool
.RegisterWaitForSingleObject(
system\threading\SemaphoreSlim.cs (1)
838
ThreadPool
.UnsafeQueueCustomWorkItem(waiterTask, forceGlobal: false);
system\threading\synchronizationcontext.cs (1)
131
ThreadPool
.QueueUserWorkItem(new WaitCallback(d), state);
system\threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
216
ThreadPool
.QueueUserWorkItem(state =>
system\threading\Tasks\FutureFactory.cs (1)
742
ThreadPool
.RegisterWaitForSingleObject(
system\threading\Tasks\Task.cs (3)
3631
ThreadPool
.UnsafeQueueCustomWorkItem(new CompletionActionInvoker(singleTaskCompletionAction, this), forceGlobal: false);
3716
ThreadPool
.UnsafeQueueCustomWorkItem(new CompletionActionInvoker(action, this), forceGlobal: false);
7226
ThreadPool
.UnsafeQueueUserWorkItem(state =>
system\threading\Tasks\TaskContinuation.cs (3)
626
ThreadPool
.UnsafeQueueCustomWorkItem(this, forceGlobal: false);
836
ThreadPool
.UnsafeQueueCustomWorkItem(atc, forceGlobal: false);
858
ThreadPool
.QueueUserWorkItem(s => ((ExceptionDispatchInfo)s).Throw(), edi);
system\threading\Tasks\ThreadPoolTaskScheduler.cs (5)
69
ThreadPool
.UnsafeQueueCustomWorkItem(task, forceToGlobalQueue);
85
if (taskWasPreviouslyQueued && !
ThreadPool
.TryPopCustomWorkItem(task))
107
return
ThreadPool
.TryPopCustomWorkItem(task);
113
return FilterTasksFromWorkItems(
ThreadPool
.GetQueuedWorkItems());
132
ThreadPool
.NotifyWorkItemProgress();
system\threading\threadpool.cs (7)
57
public static bool tpHosted =
ThreadPool
.IsThreadPoolHosted();
586
ThreadPool
.RequestWorkerThread();
805
ThreadPool
.ReportThreadStatus(true);
814
ThreadPool
.ReportThreadStatus(false);
827
if (!
ThreadPool
.NotifyWorkItemComplete())
1805
ThreadPool
.InitializeVMTp(ref ThreadPoolGlobals.enableWorkerTracking);
1851
ThreadPool
.InitializeVMTp(ref ThreadPoolGlobals.enableWorkerTracking);
system\threading\timer.cs (1)
436
ThreadPool
.UnsafeQueueUserWorkItem(callback, timer);
PresentationCore (1)
Shared\MS\Internal\SafeSecurityHelper.cs (1)
526
ThreadPool
.QueueUserWorkItem(callback, state);
PresentationFramework (5)
src\Framework\MS\Internal\Data\DefaultAsyncDataDispatcher.cs (1)
36
ThreadPool
.QueueUserWorkItem(new WaitCallback(ProcessRequest), request);
src\Framework\System\Windows\Data\ObjectDataProvider.cs (1)
306
ThreadPool
.QueueUserWorkItem(new WaitCallback(QueryWorker), null);
src\Framework\System\Windows\Data\XmlDataProvider.cs (3)
315
ThreadPool
.QueueUserWorkItem(new WaitCallback(BuildNodeCollectionAsynch),
382
ThreadPool
.QueueUserWorkItem(new WaitCallback(CreateDocFromExternalSourceAsynch),
430
ThreadPool
.QueueUserWorkItem(new WaitCallback(CreateDocFromInlineXmlAsync),
SMSvcHost (1)
System\ServiceModel\Activation\ListenerAdapter.cs (1)
811
ThreadPool
.UnsafeRegisterWaitForSingleObject(wasConnected, Fx.ThunkCallback(new WaitOrTimerCallback(WasConnected)), null, ListenerConstants.WasConnectTimeout, true);
System (42)
net\System\Net\_Connection.cs (4)
198
ThreadPool
.UnsafeQueueUserWorkItem(s_InvokeConnectionCallback, returnResult);
1540
ThreadPool
.UnsafeQueueUserWorkItem(m_PostReceiveDelegate, this);
1605
ThreadPool
.UnsafeQueueUserWorkItem(m_PostReceiveDelegate, this);
3584
ThreadPool
.UnsafeQueueUserWorkItem(m_PostReceiveDelegate, this);
net\System\Net\_LazyAsyncResult.cs (1)
409
ThreadPool
.QueueUserWorkItem(new WaitCallback(WorkerThreadComplete));
net\System\Net\_NetworkingPerfCounters.cs (1)
255
if (!
ThreadPool
.QueueUserWorkItem(instance.Initialize))
net\System\Net\_TLSstream.cs (2)
513
ThreadPool
.QueueUserWorkItem(new WaitCallback(StartWakeupPendingIO), null);
604
ThreadPool
.QueueUserWorkItem(new WaitCallback(ResumeIOWorker), lazyResult);
net\System\Net\DNS.cs (2)
744
ThreadPool
.UnsafeQueueUserWorkItem(resolveCallback, asyncResult);
779
ThreadPool
.UnsafeQueueUserWorkItem(resolveCallback, asyncResult);
net\System\Net\filewebrequest.cs (2)
243
ThreadPool
.QueueUserWorkItem(s_GetRequestStreamCallback, m_ReadAResult);
277
ThreadPool
.QueueUserWorkItem(s_GetResponseCallback,m_WriteAResult);
net\System\Net\HttpListener.cs (1)
769
ThreadPool
.BindHandle(DangerousGetHandle());
net\System\Net\HttpWebRequest.cs (2)
3255
ThreadPool
.UnsafeQueueUserWorkItem(s_AbortWrapper, context);
4482
ThreadPool
.UnsafeQueueUserWorkItem(s_EndWriteHeaders_Part2Callback, thisHttpWebRequest);
net\System\Net\Internal.cs (1)
75
ThreadPool
.GetAvailableThreads(out workerThreads, out completionPortThreads);
net\System\Net\NetWebProxyFinder.cs (2)
97
ThreadPool
.UnsafeQueueUserWorkItem(abortWrapper, request);
542
ThreadPool
.UnsafeQueueUserWorkItem(abortWrapper, context);
net\System\Net\NetworkInformation\NetworkAddressChange.cs (2)
287
s_registeredWait =
ThreadPool
.UnsafeRegisterWaitForSingleObject(
315
s_registeredWait =
ThreadPool
.UnsafeRegisterWaitForSingleObject(
net\System\Net\NetworkInformation\ping.cs (2)
427
ThreadPool
.QueueUserWorkItem(new WaitCallback(ContinueAsyncSend), state);
667
registeredWait =
ThreadPool
.RegisterWaitForSingleObject (pingEvent, new WaitOrTimerCallback (PingCallback), this, -1, true);
net\System\Net\NetworkInformation\TeredoHelper.cs (1)
188
ThreadPool
.UnsafeQueueUserWorkItem(RunCallback, null);
net\System\Net\SecureProtocols\_SslState.cs (4)
1176
ThreadPool
.QueueUserWorkItem(new WaitCallback(CompleteRequestWaitCallback), obj);
1255
ThreadPool
.QueueUserWorkItem(new WaitCallback(AsyncResumeHandshakeRead), request);
1326
ThreadPool
.QueueUserWorkItem(new WaitCallback(AsyncResumeHandshake), obj);
1419
ThreadPool
.QueueUserWorkItem(new WaitCallback(CompleteRequestWaitCallback), obj);
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
476
ThreadPool
.UnsafeRegisterWaitForSingleObject(
net\System\Net\Sockets\_MultipleConnectAsync.cs (1)
327
ThreadPool
.QueueUserWorkItem(CallAsyncFail);
net\System\Net\Sockets\Socket.cs (6)
5190
ThreadPool
.UnsafeQueueUserWorkItem(new WaitCallback(CompleteAcceptResults), null);
5320
ThreadPool
.UnsafeQueueUserWorkItem(new WaitCallback(AcceptCallback), nullState);
6402
ThreadPool
.UnsafeQueueUserWorkItem(new WaitCallback(((LazyAsyncResult)m_AcceptQueueOrConnectResult).InvokeCallback), new SocketException(SocketError.OperationAborted));
6408
ThreadPool
.UnsafeQueueUserWorkItem(new WaitCallback(CompleteAcceptResults), null);
7541
m_RegisteredWait =
ThreadPool
.UnsafeRegisterWaitForSingleObject(m_AsyncEvent, s_RegisteredWaitCallback, this, Timeout.Infinite, true);
7652
ThreadPool
.BindHandle(m_Handle);
services\io\system\io\FileSystemWatcher.cs (1)
1005
ThreadPool
.BindHandle(directoryHandle);
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
572
info.registeredWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(info.waitHandle, new WaitOrTimerCallback(StaticCompletionCallback), info, -1, false);
services\monitoring\system\diagnosticts\Process.cs (1)
1412
this.registeredWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(this.waitHandle,
sys\system\io\ports\SerialStream.cs (4)
757
if (!
ThreadPool
.BindHandle(_handle))
1841
ThreadPool
.QueueUserWorkItem(callErrorEvents, errors);
1847
ThreadPool
.QueueUserWorkItem(callPinEvents, nativeEvents);
1851
ThreadPool
.QueueUserWorkItem(callReceiveEvents, nativeEvents);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\TaskDispatcher.cs (1)
31
ThreadPool
.QueueUserWorkItem(work, state);
System.Core (4)
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (1)
193
this.registeredWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(
System\IO\Pipes\Pipe.cs (1)
1476
ThreadPool
.QueueUserWorkItem(new WaitCallback(CallUserCallbackWorker));
System\IO\Pipes\PipeStream.cs (2)
162
b =
ThreadPool
.BindHandle(handle);
1335
ThreadPool
.QueueUserWorkItem(new WaitCallback(CallUserCallbackWorker));
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TaskDispatcher.cs (1)
31
ThreadPool
.QueueUserWorkItem(work, state);
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (1)
1685
ThreadPool
.QueueUserWorkItem(_poolCreateRequest);
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (1)
1382
ThreadPool
.QueueUserWorkItem(new WaitCallback(AppDomainUnloading), appDomainKey);
System.IO.Log (2)
System\IO\Log\LogStore.cs (1)
177
if (!
ThreadPool
.BindHandle(this.logFile))
System\IO\Log\OverlappedAsyncResult.cs (1)
117
!
ThreadPool
.QueueUserWorkItem(InvokeUserCallback, this))
System.Management (1)
managementeventwatcher.cs (1)
734
ThreadPool
.QueueUserWorkItem(new WaitCallback(Cancel2));// Cancel(); //
System.Messaging (1)
System\Messaging\MessageQueue.cs (1)
4480
ThreadPool
.BindHandle(ReadHandle);
System.Net (26)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (3)
442
regPresenceChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(presenceChangedEvent, //Event that triggers the callback
500
regAppChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(appChangedEvent, //Event that triggers the callback
558
regObjChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(objChangedEvent, //Event that triggers the callback
net\PeerToPeer\Collaboration\ContactManager.cs (6)
246
m_regSubLstChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_subLstChangedEvent, //Event that triggers the callback
447
m_regNameChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_nameChangedEvent, //Event that triggers the callback
654
m_regPresenceChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_presenceChangedEvent, //Event that triggers the callback
868
m_regAppChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_appChangedEvent, //Event that triggers the callback
1082
m_regObjChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_objChangedEvent, //Event that triggers the callback
1546
ThreadPool
.QueueUserWorkItem(new WaitCallback(CreateContactAsyncHelper), new CreateContactAsyncState(peerNearMe, userToken));
net\PeerToPeer\Collaboration\MyContact.cs (3)
81
PresenceChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(PresenceChangedEvent, //Event that triggers the callback
247
AppChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(AppChangedEvent, //Event that triggers the callback
410
ObjChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(ObjChangedEvent, //Event that triggers the callback
net\PeerToPeer\Collaboration\Peer.cs (2)
1086
m_RegisteredWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_InviteEvent, //Event that triggers the callback
1415
ThreadPool
.QueueUserWorkItem(new WaitCallback(ContinueCancelCallback), state);
net\PeerToPeer\Collaboration\PeerApplication.cs (1)
255
m_regAppChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_appChangedEvent, //Event that triggers the callback
net\PeerToPeer\Collaboration\PeerCollaboration.cs (1)
1043
s_regNameChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(s_nameChangedEvent, //Event that triggers the callback
net\PeerToPeer\Collaboration\PeerContact.cs (4)
570
ThreadPool
.QueueUserWorkItem(new WaitCallback(InternalSubscribe), true);
1237
AppChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_appChangedEvent, //Event that triggers the callback
1487
ObjChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_objChangedEvent, //Event that triggers the callback
1741
PresenceChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_presenceChangedEvent, //Event that triggers the callback
net\PeerToPeer\Collaboration\PeerEndPoint.cs (1)
220
m_regNameChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_nameChangedEvent, //Event that triggers the callback
net\PeerToPeer\Collaboration\PeerNearMe.cs (2)
463
ThreadPool
.QueueUserWorkItem(new WaitCallback(InternalRefreshData), true);
560
s_registeredPNMWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(s_peerNearMeChangedEvent, //Event that triggers the callback
net\PeerToPeer\Collaboration\PeerObject.cs (1)
207
m_regObjChangedWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_objChangedEvent, //Event that triggers the callback
net\PeerToPeer\PeerNameResolver.cs (2)
206
m_RegisteredWaitHandle =
ThreadPool
.RegisterWaitForSingleObject(m_EndPointInfoAvailableEvent, //Event that triggers the callback
449
ThreadPool
.QueueUserWorkItem(new WaitCallback(ContineCancelCallback));
System.Runtime.Remoting (10)
channels\core\requestqueue.cs (3)
96
ThreadPool
.GetAvailableThreads(out workerThreads, out ioThreads);
148
ThreadPool
.UnsafeQueueUserWorkItem(_workItemCallback, null);
160
ThreadPool
.GetAvailableThreads(out workerThreads, out ioThreads);
channels\core\socketcache.cs (2)
370
ThreadPool
.UnsafeRegisterWaitForSingleObject(
393
ThreadPool
.UnsafeRegisterWaitForSingleObject(
channels\ipc\ipcport.cs (2)
43
ThreadPool
.BindHandle(_handle.Handle);
355
ThreadPool
.QueueUserWorkItem(new WaitCallback(CallUserCallbackWorker));
channels\ipc\portcache.cs (2)
57
ThreadPool
.UnsafeRegisterWaitForSingleObject(
81
ThreadPool
.UnsafeRegisterWaitForSingleObject(
channels\tcp\tcpserverchannel.cs (1)
366
ThreadPool
.QueueUserWorkItem(new WaitCallback(this.AcceptSocketCallbackAsync), ar);
System.ServiceModel (9)
System\ServiceModel\Channels\MsmqQueue.cs (2)
90
ThreadPool
.BindHandle(this.handle);
848
ThreadPool
.UnsafeQueueNativeOverlapped(nativeOverlapped);
System\ServiceModel\Channels\OverlappedContext.cs (3)
91
ThreadPool
.UnsafeRegisterWaitForSingleObject(this.rootedHolder.EventHolder, OverlappedContext.cleanupCallback, this, Timeout.Infinite, true);
210
this.registration =
ThreadPool
.UnsafeRegisterWaitForSingleObject(this.completionEvent, OverlappedContext.eventCallback, this, Timeout.Infinite, true);
289
ThreadPool
.UnsafeRegisterWaitForSingleObject(this.completionEvent, OverlappedContext.cleanupCallback, this, Timeout.Infinite, true);
System\ServiceModel\Channels\PipeConnection.cs (2)
682
ThreadPool
.BindHandle(this.pipe);
2119
ThreadPool
.BindHandle(pipeHandle);
System\ServiceModel\Channels\RequestChannel.cs (1)
379
this.waitHandle =
ThreadPool
.RegisterWaitForSingleObject(this.requestChannel.closedEvent, completeWaitCallBack, this, TimeoutHelper.ToMilliseconds(timeout), true);
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
887
ThreadPool
.RegisterWaitForSingleObject(result.AsyncWaitHandle,
System.ServiceModel.Internals (1)
System\Runtime\IOThreadScheduler.cs (1)
647
ThreadPool
.UnsafeQueueNativeOverlapped(this.nativeOverlapped);
System.Transactions (7)
System\Transactions\Oletx\OletxTransactionManager.cs (1)
537
ThreadPool
.UnsafeRegisterWaitForSingleObject(
System\Transactions\TransactionState.cs (2)
3631
if ( !
ThreadPool
.QueueUserWorkItem( SignalMethod, tx ))
4788
if (!
ThreadPool
.QueueUserWorkItem(SignalMethod, tx))
System\Transactions\VolatileEnlistmentMultiplexing.cs (4)
126
if (!
ThreadPool
.QueueUserWorkItem(PrepareCallback, demux))
186
if (!
ThreadPool
.QueueUserWorkItem(CommitCallback, demux))
246
if (!
ThreadPool
.QueueUserWorkItem(RollbackCallback, demux))
306
if (!
ThreadPool
.QueueUserWorkItem(InDoubtCallback, demux))
System.Web (30)
Compilation\BuildResultCache.cs (2)
274
ThreadPool
.QueueUserWorkItem(new WaitCallback(MemoryBuildResultCache.ShutdownCallBack), "BuildResult change, cache key=" + key);
609
ThreadPool
.QueueUserWorkItem(new WaitCallback(DiskBuildResultCache.ShutdownCallBack));
Compilation\ClientBuildManager.cs (2)
713
ThreadPool
.QueueUserWorkItem(_onAppDomainUnloadedCallback);
745
ThreadPool
.QueueUserWorkItem(_onAppDomainShutdown, reason);
Hosting\ApplicationManager.cs (3)
648
ThreadPool
.UnsafeQueueUserWorkItem(_ => {
695
ThreadPool
.QueueUserWorkItem(_onRespondToPingWaitCallback);
1550
ThreadPool
.UnsafeQueueUserWorkItem(_tpCallback, this);
Hosting\BackgroundWorkScheduler.cs (1)
66
ThreadPool
.UnsafeQueueUserWorkItem(state => {
Hosting\HostingEnvironment.cs (2)
640
ThreadPool
.QueueUserWorkItem(this._initiateShutdownWorkItemCallback);
1540
registeredWaitHandle =
ThreadPool
.UnsafeRegisterWaitForSingleObject(waitHandle, (_, __) => {
Hosting\ProcessHost.cs (1)
991
ThreadPool
.QueueUserWorkItem(new WaitCallback(delegate(object o) {
Hosting\SuspendManager.cs (3)
64
ThreadPool
.UnsafeQueueUserWorkItem(_ => {
76
ThreadPool
.UnsafeQueueUserWorkItem(_ => {
158
ThreadPool
.UnsafeQueueUserWorkItem(_quwiThunk, callback);
HttpApplication.cs (1)
2289
ThreadPool
.QueueUserWorkItem(_resumeStepsWaitCallback, error);
HttpRuntime.cs (5)
1189
ThreadPool
.GetMaxThreads(out workerMax, out ioMax);
1216
ThreadPool
.GetMaxThreads(out workerMax, out ioMax);
1227
ThreadPool
.GetMinThreads(out currentMinWorkerThreads, out currentMinIoThreads);
1234
ThreadPool
.SetMinThreads(newMinWorkerThreads, newMinIoThreads);
2298
ThreadPool
.QueueUserWorkItem(_theRuntime._appDomainUnloadallback);
LegacyAspNetSynchronizationContext.cs (1)
183
ThreadPool
.QueueUserWorkItem(callback);
RequestQueue.cs (5)
145
ThreadPool
.GetMaxThreads(out maxWorkerThreads, out maxIoThreads);
152
ThreadPool
.GetAvailableThreads(out workerThreads, out ioThreads);
210
ThreadPool
.GetAvailableThreads(out workerThreads, out ioThreads);
216
ThreadPool
.QueueUserWorkItem(_workItemCallback);
237
ThreadPool
.GetAvailableThreads(out workerThreads, out ioThreads);
UI\LegacyPageAsyncTaskManager.cs (1)
339
ThreadPool
.QueueUserWorkItem(_resumeTasksCallback);
UI\Page.cs (1)
5970
ThreadPool
.QueueUserWorkItem(_callHandlersThreadpoolCallback);
Util\CancellationTokenHelper.cs (1)
51
ThreadPool
.UnsafeQueueUserWorkItem(_ => {
Util\WorkItem.cs (1)
64
ThreadPool
.QueueUserWorkItem(_onQueueUserWorkItemCompletion, callback);
System.Workflow.Runtime (2)
Hosting\DefaultWorkflowSchedulerService.cs (2)
156
if (
ThreadPool
.QueueUserWorkItem(QueueWorkerProcess))
268
if (
ThreadPool
.QueueUserWorkItem(this.QueueWorkerProcess))
WindowsBase (1)
Shared\MS\Internal\SafeSecurityHelper.cs (1)
526
ThreadPool
.QueueUserWorkItem(callback, state);