Named locks are preferable to scoped locks - see details from Sean Corfields site here http://www.corfield.org/index.php?fuseaction=blog.archive&month=2003_01 (Jan 6 entry - halfway down page)
Files - use a named lock with the same name as the file. Johan -------------------------------------------- Johan Steenkamp www.assetnow.com -------------------------------------------- ----- Original Message ----- From: "Alan Ford" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, August 18, 2003 8:22 AM Subject: Re: cflock - what does it do? Exactly? > Charlie, > > One cflock topic you didn't mention is named locking of non-variables - such > as the file system. Under what circumstances should file accesses be locked, > and, conversely, when is it ok to let them go unlocked? If I simply want to > write, read or delete a disk file, and there is no possible chance that any > other thread could be working on those files (because file names are > uniquely allocated), should I lock the accesses? > > When else should named (as opposed to scoped) locks be used? > > Regards, > > Alan Ford > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com