3 writes to IsThreadPoolThread
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (1)
265
IsThreadPoolThread
= true,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (1)
188
IsThreadPoolThread
= true,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerThread.cs (1)
79
workerThread.
IsThreadPoolThread
= true;
13 references to IsThreadPoolThread
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
229
if (currentThread.
IsThreadPoolThread
|| currentThread.IsBackground)
System.Data.OleDb (1)
System\Data\ProviderBase\DbConnectionPool.cs (1)
929
Debug.Assert(!Thread.CurrentThread.
IsThreadPoolThread
, "This thread may block for a long time. Threadpool threads should not be used.");
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (1)
367
Debug.Assert(!RuntimeFeature.IsMultithreadingSupported || Thread.CurrentThread.
IsThreadPoolThread
); // there are no dedicated threadpool threads on runtimes where we can't start threads
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.Blocking.cs (2)
34
if (!BlockingConfig.IsCooperativeBlockingEnabled || !Thread.CurrentThread.
IsThreadPoolThread
)
71
Debug.Assert(Thread.CurrentThread.
IsThreadPoolThread
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (1)
593
if (isDefaultScheduler && taskWasPreviouslyQueued && !Thread.CurrentThread.
IsThreadPoolThread
)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (1)
503
(TaskScheduler.InternalCurrent == scheduler || Thread.CurrentThread.
IsThreadPoolThread
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (3)
419
Debug.Assert(
IsThreadPoolThread
);
432
Debug.Assert(!RuntimeFeature.IsMultithreadingSupported ||
IsThreadPoolThread
); // there are no dedicated threadpool threads on runtimes where we can't start threads
444
Debug.Assert(!RuntimeFeature.IsMultithreadingSupported ||
IsThreadPoolThread
); // there are no dedicated threadpool threads on runtimes where we can't start threads
System.ServiceModel.Primitives (3)
Internals\System\Runtime\TaskHelpers.cs (2)
388
if (!Thread.CurrentThread.
IsThreadPoolThread
)
398
Fx.Assert(Thread.CurrentThread.
IsThreadPoolThread
, "We should be running on the thread pool");
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (1)
775
if (Thread.CurrentThread.
IsThreadPoolThread
)