[stringtemplate-interest] Synchronization error in ST implementation.
Terence Parr
parrt at cs.usfca.edu
Tue Sep 19 17:16:39 PDT 2006
On Sep 18, 2006, at 7:56 PM, Zenaan Harkness wrote:
> Here's a thought I have. From the doco for ST:
>
> "made static maps in STG synchronized, also synchronized the look
> up/def methods for templates in STG"
>
> Well, this is not technically an error, but why does ST synchronize?
Because multiple threads can be adding looking up and adding
things at the same time.
> Surely the user should synchronize, if needed, so that everyone
> else does not pay the price of locking.
It's not easy to wrap everything in ST in something that will
synchronize it from outside; well I haven't looked into that, but
speed is not seem to be a problem for me. Anybody noticed a problem
so far?
Ter
More information about the stringtemplate-interest
mailing list