Depends how much is going on in the loop. If there's a lot of stuff going on, I'd lock 
outside to collect the values that I would be wanting to use inside. Copy them into 
the Variables scope and use those temporary ones inside the loop. Then copy them back 
into the shared scope in a lock after the loop. That way we only have two very quick 
locks instead of many locks (inside), or one long lock (outside).
D

-----Original Message-----
From: Robertson-Ravo, Neil (REC)
[mailto:Neil.Robertson-Ravo@;csd.reedexpo.com]
Sent: 24 October 2002 11:01
To: '[EMAIL PROTECTED]'
Subject: [ cf-dev ] Inside or out


opinion : <cflock> inside a <cfloop> or outside?.... 

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to