> I'm running into some areas of my code where I'm looping through
> session variables and am setting other session variables inside the
> loop. I had already locked the cfset tags exclusively but now have to
> readonly the entire loop since it's a session. I wrapped the readonly
> around the entire loop which contains multiple cfsets being locked
> exclusively. I didn't get any errors, so I guess that's OK.
>
> But, which would be the most logical way to do this? Wrap the entire
> loop with an exclusive lock? Or keep it like it is and just lock the
> cfsets exclusively?
Just wrap the entire section with a single exclusive lock. You can't have an
exclusive lock nested within a readonly lock of the same scope.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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.