try to launch threads even if none need cleanup.

hopefully fixes thread freeze.
This commit is contained in:
Matt
2015-10-07 07:29:37 -06:00
parent c947252fee
commit 6d90ea2e5f

@ -1072,7 +1072,10 @@ ThreadEntry *ThreadQueue::addEntry ( int32_t niceness ,
int32_t Threads::timedCleanUp (int32_t maxTime, int32_t niceness) {
if ( ! m_needsCleanup ) return 0;
if ( ! m_needsCleanup ) {
launchThreads();
return 0;
}
//if ( g_inSigHandler ) return 0;
int64_t startTime = gettimeofdayInMillisecondsLocal();
int64_t took = 0;