[stringtemplate-interest] thread safety
Terence Parr
parrt at cs.usfca.edu
Fri Nov 13 11:47:45 PST 2009
Oh right. cache invalidation / reload would need to be atomic. I'll
have to lock for that. you always make my life hard, John ;)
Ter
On Nov 13, 2009, at 11:44 AM, John D. Mitchell wrote:
> 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