forked from Mirrors/privacore-open-source-search-engine
try to launch threads even if none need cleanup.
hopefully fixes thread freeze.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user