Yon Uriarte wrote:
> Hi,

> logstream.cxx:
>     Modified a bit the logstream implementation to avoid (stack) descent 
> down into (iostream) hell if we are not logging anything anyway. As it 
> is right now, it happily builds the string to print (iostream hell, deep 
> stacks, strings new/delete/copy) and then discards it. I´ve counted over 
> half a million calls to sglog() before the scenery is fully loaded (cant 
> remember with what configuration, more on config below).
>     Also, the global logstream is initialized once at startup 
> (constructors, struct ignore_me), no need to check everytime it is 
> called if it's initialized. Maybe if sglog() is used in any global 
> constructor it could happen that it is not initialized and crash, so 
> please, dont use it in the global constructors ;)
I've reworked the logstream changes a bit and checked this in. Thanks.

Tim

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to