> PS. And even the above is not perfect protection against an autolock if a 
> thread gets cpu execution delay between construction statement and the 
> ec.setCoalesceAutoLocks(false) statement. After setting safelocking props to 
> false, I should really check if the ec was autolocked and unlock it before 
> returning .... or even have an ERXEC constructor that takes a safeLocking 
> boolean param, but that would be two more undesired constructors ....... so 
> probably making isLockedInThread public (or accessible using reflection) 
> should do the trick.

In that case, you'd be better with

return new ERXEC(os) {
     public boolean useAutoLock() {return false;}

     public boolean coalesceAutoLocks() {return false;}
};

Cheers, Anjo


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to