Thread dispatch fixes. (code is commented out)

This commit is contained in:
JoelKatz
2013-03-29 18:28:16 -07:00
parent 4f029e25b6
commit 8215463879
2 changed files with 2 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ DatabaseCon::~DatabaseCon()
}
Application::Application() :
// mIOService(2),
mIOWork(mIOService), mAuxWork(mAuxService), mUNL(mIOService), mNetOps(mIOService, &mLedgerMaster),
mTempNodeCache("NodeCache", 16384, 90), mHashedObjectStore(16384, 300), mSLECache("LedgerEntryCache", 4096, 120),
mSNTPClient(mAuxService), mJobQueue(mIOService), mFeeTrack(),

View File

@@ -272,9 +272,7 @@ void JobQueue::IOThread(boost::mutex::scoped_lock& sl)
NameThread("IO+");
try
{
do
NameThread("IO+");
while ((mIOService.poll_one() == 1) && !theApp->isShutdown());
mIOService.poll();
}
catch (...)
{