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) while (1)
{ {
NameThread("waiting"); NameThread("waiting");
bool didIO = false; // bool didIO = false;
while (mJobSet.empty() && !mShuttingDown) while (mJobSet.empty() && !mShuttingDown)
{ {
if ((mIOThreadCount < mMaxIOThreadCount) && !didIO && !theApp->isShutdown()) // if ((mIOThreadCount < mMaxIOThreadCount) && !didIO && !theApp->isShutdown())
{ // {
IOThread(sl); // IOThread(sl);
didIO = true; // didIO = true;
} // }
else // else
{ // {
mJobCond.wait(sl); mJobCond.wait(sl);
didIO = false; // didIO = false;
} // }
} }
if (mShuttingDown) if (mShuttingDown)