"Diethelm Guallar, Gonzalo" <[EMAIL PROTECTED]> writes:

> > >   Added a static method getFieldNames() generated from Object.vm.
> > >   It returns a Vector with the field names; these names can later
> > >   be used as input for getByName(). Note: this method uses a
> > >   private static variable, and there might be MT concerns here,
> > >   since no locking is used at all.
> > 
> > Torque is currently setup to be run as an Ant task from the command
> > line, with only one thread involved (i.e. we're okay for now).  Good
> > to note for future changes or weird setups.  ;)
> 
> But this is in generated code, which will be called by the
> final application; the caveat applies, and any fixes would
> be welcome. I didn't provide any because I'm not sure what
> the proper way of protecting these things is anymore, after
> the recent messages regarding double-locking.

Yeah, someone else (Sean?) pointed out my err as well.  As I
understand the double-checked locking issue, it has more to do with
double-checked locking used in combination with object instantiation.
Please correct me if I misunderstand.  :)
-- 

Daniel Rall <[EMAIL PROTECTED]>


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to