> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 09, 2007 1:18 PM
> To: CF-Talk
> Subject: No Longer Need to Lock Session Variables?
> 
> Hi, all.
> 
> Now, remember, I'm still learning to write CF8 code straight
> from CF4.5 code, so.
> 
> Is my understanding correct that I no longer need to place
> cflocks around any setting or reading of session variables?

In short you no longer need to do this to ensure server reliability (the
structures which hold this information are now thread-safe) - no more
crashes because of locking.  (5 year-old Yay!)

(Just kidding - we went straight from 4.5 to 7 so I know exactly where
you're coming from.)

However you still may need to lock to protect your data for
application/design reasons (race-conditions for example).  It's rare that
you'll need to lock whole scopes however and for the most part named locks
should provide all the utility you need without dragging performance.

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294420
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to