Re-add DBI query throttling (r=dvander).
This commit is contained in:
parent
d4fb74ef9a
commit
0f6063af60
@ -615,6 +615,17 @@ void DBManager::ThreadMain()
|
|||||||
ke::AutoLock lock(&m_ThinkLock);
|
ke::AutoLock lock(&m_ThinkLock);
|
||||||
m_ThinkQueue.push(op);
|
m_ThinkQueue.push(op);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!m_Terminate)
|
||||||
|
{
|
||||||
|
ke::AutoUnlock unlock(&m_QueueEvent);
|
||||||
|
#ifdef _WIN32
|
||||||
|
Sleep(20);
|
||||||
|
#else
|
||||||
|
usleep(20000);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_Terminate)
|
if (m_Terminate)
|
||||||
|
Loading…
Reference in New Issue
Block a user