Le vendredi 02 mai 2008 à 10:34 +0200, Tim Moore a écrit : > This concern is valid, but *every* use of SGMutex removed in Benôit's patch is > not actually thread safe now! Static local variables are initialized the first > time a function is called. I'm not sure if the proper lesson to take away is > that threading is hard, because of subtle issues like this, or if it's easy, > because it works even in the presence of such bugs ;)
I'll try provide an updated patch for this case and for flightgear's use of sgthread but I'm afraid it will take time as I am quite new to C++. Benoît p.s. I changed the headline as till suggested ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel