Steve,
><cfscript>
>context = createObject("java", "coldfusion.runtime.NeoPageContext");
>isLocked = context.getNamedLock();
></cfscript>
>
><cfif isLocked eq "">
> <cflock timeout="30" throwontimeout="Yes" scope="SESSION">
></cfif>
>
><< put some code that meets a race condition here >>
>
><cfif isLocked eq "">
> </cflock>
></cfif>
Even if you can figure out any locked statements, you wouldn't be able to
use the syntax you had posted. You'd need to do:
<cfif isLocked eq "">
<cflock>
... code ...
</cflock>
<cfelse>
... same code ...
</cfif>
My guess is if you dig deep enough, you could find where in memory the locks
are stored, but I doubt it be worth the extra work to do whatever you're
trying to do.
-Dan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211559
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54