Re: parameter config is a mess

Matthias Radestock <[email protected]>
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
Scott Miller wrote:

> Well, you can't change the value in threads that have already been 
> created, as they have a new dynamic environment anyway.

not true. Parameters only get copied to dynenv when their value is set.

Anyway, I'm not too concerned about old threads.

> But why 
> wouldn't future threads inherit the value if you change it?

Because there are many many ways to create threads and dynamic 
environments. Only some of them do dynenv inheritance. It's in the 
nature of *system* properties that you want them to apply as defaults 
*system-wide*, i.e. setting a parameter via a system property should 
have the same effect as if the parameter had been created with the 
specified value as the default - all threads, no matter how you created 
them, inherit it.


Matthias



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.