]> git.mxchange.org Git - flightgear.git/commit
Jean-Yves Lefort: fix "crash" on exit
authormfranz <mfranz>
Tue, 7 Mar 2006 10:26:25 +0000 (10:26 +0000)
committermfranz <mfranz>
Tue, 7 Mar 2006 10:26:25 +0000 (10:26 +0000)
commited9e16d00197f5ded4a24751ee7822c0a24b6d15
tree2aaf3dd2450171efc60131148371e6e1f0bf6a60
parent8676df685635b53be2f9cfc76650871795c8b291
Jean-Yves Lefort: fix "crash" on exit

mf:
pthread_cancel doesn't seem to work correctly on all supported platforms.
It apparently causes SGBlockingQueue::pop() to correctly leave the thread on
the cancellation point pthread_wait(), but the SGGuard() destructor isn't
called, so the queue mutex remains locked. This triggered an assert() on
pthread_join(). This patch uses an empty ICAO request as signal for the
thread to terminate itself.
src/Environment/environment_ctrl.cxx
src/Environment/environment_ctrl.hxx