[stringtemplate-interest] thread safety

John D. Mitchell jdmitchell at gmail.com
Fri Nov 13 11:44:21 PST 2009


On Nov 13, 2009, at 11:37 , Terence Parr wrote:
[...]
>> the typical approach in a multithreaded environment (rendering web
>> pages)
>> would probably be to create a shared StringTemplateGroup(-hierarchy)
>> used by different threads to obtain the templates to be rendered.
>
> yep, that should be safe as long as you don't define templates as you
> run the webserver.

What about the auto-reload feature?

John



More information about the stringtemplate-interest mailing list