In <11451440F335D21197F200104BAFD3A7B70BBE@EXCH2>, Robert Everland 
([EMAIL PROTECTED]) in a fit of unbridled passion, wrote:
>       Ok I have the CFX_Excel and it works fine for me, the thing I want
> to know is what does putting cflock around the tag actually do. I was
> testing it a second ago with 2 people to see if we would get an error if we
> click it at the same time( was hoping we didn't) and we didn't. So does
> cflock que it up for the next person, or what does it do exactly?

As per the documentation: (RTFM, dude)

The CFLOCK tag provides two types of locks to ensure the integrity of 
shared data:

exclusive lock 
read-only lock 
An exclusive lock single-threads access to the CFML constructs in its 
body. Single-threaded access implies that the body of the tag can be 
executed by at most one request at a time. A request executing inside a 
CFLOCK tag has an "exclusive lock" on the tag. No other requests are 
allowed to start executing inside the tag while a request has an 
exclusive lock. ColdFusion issues exclusive locks on a first-come, 
first-served basis.

A read-only lock allows multiple requests to access the CFML constructs 
inside its body concurrently. Therefore, read-only locks should only be 
used when the shared data will only be read and not modified. If another 
request already has an exclusive lock on the shared data, the request 
will wait for the exclusive lock to be released before it can obtain it.


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to