]> git.mxchange.org Git - flightgear.git/commit
Use a helper thread to rebuild the navcache.
authorJames Turner <zakalawe@mac.com>
Tue, 25 Sep 2012 16:24:12 +0000 (17:24 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 25 Sep 2012 16:24:12 +0000 (17:24 +0100)
commita10638c6b45b4e530000df2018bf340bd3e36070
tree23250bcdf7ccb4f1c1e403b3d48f3187c462bf3f
parentae6218ff102b8638a7ce584484748472d347fdd9
Use a helper thread to rebuild the navcache.

Avoid the application becoming unresponsive during nav-cache rebuilds. We still have to wait for the rebuild, but perform it on a helper thread so the main GUI thread stays responsive and hence doesn't trigger a beach-ball / 'not responding' alert. Also ensures there's some feedback (the spinner) during the rebuild operation, so users don't think we've hung.
src/Main/fg_init.cxx
src/Main/main.cxx
src/Navaids/NavDataCache.cxx
src/Navaids/NavDataCache.hxx