Even more tuning.

This commit is contained in:
Gunnar Beutner 2013-03-23 15:57:12 +01:00
parent dc2efae421
commit 6b6be8eec3
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ EventQueue::EventQueue(void)
for (int i = 0; i < sizeof(m_ThreadStates) / sizeof(m_ThreadStates[0]); i++)
m_ThreadStates[i] = ThreadDead;
for (int i = 0; i < 8; i++)
for (int i = 0; i < 2; i++)
SpawnWorker();
boost::thread reportThread(boost::bind(&EventQueue::ReportThreadProc, this));
@ -215,7 +215,7 @@ void EventQueue::ReportThreadProc(void)
/* Spawn a few additional workers. */
for (int i = 0; i < 8; i++)
SpawnWorker();
} else {
} else if (alive > busy + 2) {
KillWorker();
}
}