Skip to content

Commit

Permalink
Fixed InitializeForThreadPoolThread
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-vp committed Jun 5, 2023
1 parent 0651298 commit 56be9f1
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -13,8 +13,10 @@ public static ThreadPoolCallbackWrapper Enter()
if (!currentThread.IsThreadPoolThread)
{
currentThread.IsThreadPoolThread = true;
#if TARGET_WINDOWS
// when using the Windows Threadpool, this is needed to increment the ThreadCount
ThreadPool.InitializeForThreadPoolThread();
#endif
}
return new ThreadPoolCallbackWrapper
{
Expand Down

0 comments on commit 56be9f1

Please sign in to comment.