diff options
Diffstat (limited to 'src/vm/threadpoolrequest.cpp')
-rw-r--r-- | src/vm/threadpoolrequest.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/vm/threadpoolrequest.cpp b/src/vm/threadpoolrequest.cpp index a5c1c4263d..247deea304 100644 --- a/src/vm/threadpoolrequest.cpp +++ b/src/vm/threadpoolrequest.cpp @@ -25,9 +25,6 @@ #include "eeconfig.h" #include "corhost.h" #include "nativeoverlapped.h" -#ifdef FEATURE_REMOTING -#include "crossdomaincalls.h" -#endif #include "appdomain.inl" BYTE PerAppDomainTPCountList::s_padding[64 - sizeof(LONG)]; @@ -371,11 +368,8 @@ void UnManagedPerAppDomainTPCount::SetAppDomainRequestsActive() LONG prevCount = FastInterlockCompareExchange(&m_outstandingThreadRequestCount, count+1, count); if (prevCount == count) { - if (!CLRThreadpoolHosted()) - { - ThreadpoolMgr::MaybeAddWorkingWorker(); - ThreadpoolMgr::EnsureGateThreadRunning(); - } + ThreadpoolMgr::MaybeAddWorkingWorker(); + ThreadpoolMgr::EnsureGateThreadRunning(); break; } count = prevCount; @@ -611,11 +605,8 @@ void ManagedPerAppDomainTPCount::SetAppDomainRequestsActive() LONG prev = FastInterlockCompareExchange(&m_numRequestsPending, count+1, count); if (prev == count) { - if (!CLRThreadpoolHosted()) - { - ThreadpoolMgr::MaybeAddWorkingWorker(); - ThreadpoolMgr::EnsureGateThreadRunning(); - } + ThreadpoolMgr::MaybeAddWorkingWorker(); + ThreadpoolMgr::EnsureGateThreadRunning(); break; } count = prev; @@ -691,7 +682,7 @@ void ManagedPerAppDomainTPCount::ClearAppDomainUnloading() // AD. // VolatileStore(&m_numRequestsPending, (LONG)ThreadpoolMgr::NumberOfProcessors); - if (!CLRThreadpoolHosted() && ThreadpoolMgr::IsInitialized()) + if (ThreadpoolMgr::IsInitialized()) { ThreadpoolMgr::MaybeAddWorkingWorker(); ThreadpoolMgr::EnsureGateThreadRunning(); |