Re-add DBI query throttling (r=dvander).

This commit is contained in:
Nicholas Hastings 2014-09-18 22:02:32 -04:00
parent c4279da3b2
commit c79f52e2c9

View File

@ -615,6 +615,17 @@ void DBManager::ThreadMain()
ke::AutoLock lock(&m_ThinkLock);
m_ThinkQueue.push(op);
}
if (!m_Terminate)
{
ke::AutoUnlock unlock(&m_QueueEvent);
#ifdef _WIN32
Sleep(20);
#else
usleep(20000);
#endif
}
}
if (m_Terminate)