What happens if I lock an application scoped variable.
I have an application that can perform a task, which would cause trouble if
two people were doing that task at the same time.
So I thought I could either do it using an application lock block, but i'm
not really sure if that would work. The operation takes 30 seconds or less,
so i'd be happy for the next person to just wait until the application was
ready.
The second method I had in mind would be to have
<cfloop expression="application.locked = true">
<!--- Do nothing and just wait --->
</cfloop>
Not locked
<cfset application.locked = true />
Do Task
<cfset application.locked = false />
How would you do this.
Regards
Dale Fraser
http://learncf.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---