Listen for shutdown in thread loops.

This way we don't need to use wait_for(), much better.
Also because there are slightly more correct cond vars on win32.
This commit is contained in:
Unknown W. Brackets committed 2013-09-28 00:45:54 -07:00
1 parent 4b9056fa02
commit 086294b495
3 files changed
+15 -3

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ struct ThreadEventQueue : public B {
}
// coreState changes won't wake us, so recheck periodically.
eventsWait_.wait_for(eventsWaitLock_, 1);
eventsWait_.wait(eventsWaitLock_);
} while (CoreTiming::GetTicks() < globalticks);
}