|
From: Bruce M. <br...@mc...> - 2003-06-17 00:08:12
|
Thats a good point. On the face of it, it looks like the addToContext method should be synchronized. Can you make the change. regards, Bruce. On Monday 16 June 2003 06:38 pm, Ken Geis wrote: > I was looking at the code to com.babeldoc.core.VariableProcessor. I > have a little problem with it. > > Why is getContext() synchronized? No other method in VariableProcessor > is synchronized. This means that you are trying to avoid having two > threads attain a reference to the context at the same time. It makes no > assurance on synchronizing accesses to the methods on the context > object. I could understand synchronizing addToContext(name, object). > > > Ken > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |