* Martin Spott -- Monday 06 March 2006 15:17:
> FreeBSD-5.3:
> 
> Assertion failed: (status == 0), function ~SGMutex, file
> /opt/FlightGear/include/simgear/threads/SGThread.hxx, line 227. 
> Abort (core dumped)

OK, that's enough proof. This definitely needs to be fixed. If it can't
be done cleanly before the release, then we can still comment out the
destructors again for a *very* short period. This is a crude hack that
mustn't prevail for years again. Less offensive (while still bad)
would be to only comment out the triggering ASSERT.

But, of course, we need that properly fixed. The link that Jean-Yves
posted implies that one shouldn't use pthread_cancel() at all, but
rather the author's own thread lib. I don't fully buy that. I looked
into the sources of the Qt lib, and they *do* use pthread_cancel()
(on all Unices). (There's a warning in the code, but not related to
our problem.) Qt only recommends to wait after the cancel until the
thread is really finished, before continuing.

m. 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to