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

This commit is contained in:
Nicholas Hastings 2014-09-18 22:02:32 -04:00
parent d4fb74ef9a
commit 0f6063af60

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)