> This particular app is running on CFMX6.1 so I don't have 
> application.cfc available.  I have a cfif 
> IsObject(application.ws) in my application.cfm which creates 
> it if it's not there yet.  I don't know if that's thread safe 
> though. :(

It's not, by itself - it's possible that two people could run pages at
nearly the same time, and that both pages could run the test to see if
application.ws is an object before either creates it. But if you're
initializing things in Application.cfm, my guess is that the initialization
code would do the same thing in both cases, so you really wouldn't care
anyway about a possible race condition.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net



You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/cfcdev@cfczone.org

Reply via email to