Temporarily back out the thread migration code until I can figure out if Boost's IO service is broken.

This commit is contained in:
JoelKatz
2013-03-29 17:56:03 -07:00
parent 3bfd62971a
commit 4f029e25b6

View File

@@ -291,19 +291,19 @@ void JobQueue::threadEntry()
while (1)
{
NameThread("waiting");
bool didIO = false;
// bool didIO = false;
while (mJobSet.empty() && !mShuttingDown)
{
if ((mIOThreadCount < mMaxIOThreadCount) && !didIO && !theApp->isShutdown())
{
IOThread(sl);
didIO = true;
}
else
{
// if ((mIOThreadCount < mMaxIOThreadCount) && !didIO && !theApp->isShutdown())
// {
// IOThread(sl);
// didIO = true;
// }
// else
// {
mJobCond.wait(sl);
didIO = false;
}
// didIO = false;
// }
}
if (mShuttingDown)