No, cflock isn't limited to locking variables.  Yes, cflock is used for mem
ory variables (server, session, application) but remember cflock doesn't "l
ock" anything, it merely coordinates access between similar locks (same sco
pe or same name).

If you use cflock with the name attribute, all you're doing is coordinating
 all the cflocks with that same name attribute.  And inside the cflock can 
be anything - I use it around a cffile so our app doesn't try to write to a
 particular file when someone else is writing to it at the same time.

Chris Norloff


---------- Original Message ----------------------------------
from: Kelly Matthews <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Mon, 7 Jan 2002 19:18:34 -0500 

>as far as I know it's not something that can be done. CFLOCK is strictly f
or
>sessions, etc. 
>CFFILE doesn't allow you to add a system level lock on a file nor release 
a
>lock. Would
>be nice though. :) I could be wrong but I don't think it has that
>capability.
>
>-----Original Message-----
>From: Jim McAtee [mailto:[EMAIL PROTECTED]] 
>Sent: Monday, January 07, 2002 6:33 PM
>To: CF-Talk
>Subject: CFLOCK on files
>
>
>Does CF set an operating system level file lock on files being accessed
>within a named CFLOCK?  Or is this handled by CFFILE?  Or at all?
>
>Jim 
>
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to