added some hacky sleeps to temporarily fix some thread timing issues (causing access violations). the best fix would be to use wait cond vars, but first we need to really understand the bug.

This commit is contained in:
Nick Bolton 2013-09-16 15:21:36 +00:00
parent 6f982a501a
commit 760e38eeba
8 changed files with 34 additions and 25 deletions

View file

@ -385,5 +385,12 @@ CApp::handleIpcMessage(const CEvent& e, void*)
if (m->type() == kIpcShutdown) {
LOG((CLOG_INFO "got ipc shutdown message"));
m_events->addEvent(CEvent(CEvent::kQuit));
}
}
}
void
CApp::runEventsLoop(void*)
{
m_events->cacheCurrentEventQueueRef();
m_events->loop();
}