> Can anyone tell me what the behaviour of CFLOCK is when 
> you give it a timeout value of 0? What I'm looking to do 
> is create a situation where if one user has acquired the 
> lock, any other users who reach the lock will immediately 
> skip the synchronized section. I thought the following 
> might work...
> 
> <cflock name="MyLock" timeout="0" throwontimeout="no" 
> type="exclusive">
> ...
> </cflock>
> 
> However, I can't find any documentation stating how CF 
> handles a value of 0 in the timeout field. Will it even 
> attempt to acquire the lock? In some languages a timeout 
> of 0 indicates "wait indefinetely" which is obviously
> not what I want in this case. I'm running CF5 Pro.

Well, I don't know the answer to your question, but you can easily find this
out by simply writing some test pages with locks, and running them to see
what happens. For example, you could place a lock around a long-running
loop, and run that from two separate browsers, or even from one browser
using a frameset. The answer that you get this way will be more reliable
than any provided by the documentation, which often contains omissions,
ambiguities, and even the occasional error.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to