We're still working in CF5.

Thanks for the UDF -- I'd not figured out how to write them in "taggish"
yet, although I had the vague idea it could be done.



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

: -----Original Message-----
: From: Raymond Camden [mailto:[EMAIL PROTECTED]]
: Sent: Tuesday, December 17, 2002 11:33 AM
: To: CF-Talk
: Subject: RE: CFlock in CFScript
:
:
: You can't. However, you could write a UDF to act as a wrapper. For
: example, if you wanted to get foo from the application scope and wanted
: a readOnly lock....
:
: (fyi, I'm writing this code pretty quickly, so forgive any typos)
:
: <cffunction name="applicationRead" returnType="any" output=false>
:       <cfargument name="variable" type="string" required=true>
:       <cflock scope="application" type="readOnly" timeout=3>
:               <cfreturn application[variable]>
:       </cflock>
: </cffunction>
:
: Of course, remember that for most cases, you won't need the locks in MX
: anyway.
:
: =======================================================================
: Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
:
: Email    : [EMAIL PROTECTED]
: WWW      : www.camdenfamily.com/morpheus
: Yahoo IM : morpheus
:
: "My ally is the Force, and a powerful ally it is." - Yoda
:
: > -----Original Message-----
: > From: Ben Doom [mailto:[EMAIL PROTECTED]]
: > Sent: Tuesday, December 17, 2002 10:20 AM
: > To: CF-Talk
: > Subject: CFlock in CFScript
: >
: >
: > I asked this before, but it never landed in my inbox (nor did
: > any replies) so I'll ask again.
: >
: > Is it possible to lock application, session, etc. variables
: > in a cfscript? If so, how?
: >
: > I'm guessing it's not, but it would make my life easier and
: > my code cleaner in at least one instance.  :-)
: >
: >
: >
: >   --Ben Doom
: >     Programmer & General Lackey
: >     Moonbow Software
: >
: >
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to