
24 Jan
2010
24 Jan
'10
5:15 p.m.
Hi Steve,
There is a ThreadLocal class specially for keeping values on a per-thead basis, as in the attached modification to your patch.
Thanks, I was not aware of that class.
With your code there is a slight chance that there will be a problem if a value is set at exactly the same time as the tag is being accessed.
Yes, it should have had synchronized blocks around the map access - silly me. Mark