This method is simple and probably works. But by this method all of thread issues can't be catched, of course. getMetaData returns all functions. We can loop over them and log global scopes in an xml document. And then loop over this xml document to find problems. Or instead of loging we can directly compare global scopes.
But real word cfcs might complex that uses constructors or some other cfcs in global scopes which makes unit cfc complex. Maybe all cfcs can inherit a single unitcfc that shares a resource for global scope comparison. The global scopes can include application, server, and session. Murat. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Chiverton > Sent: Wednesday, September 22, 2004 5:08 PM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] Testing Thread Safety > > On Wednesday 22 Sep 2004 14:42 pm, Murat Demirci wrote: > > Functions that use global scopes are thread unsafe. > > It is very much not as simple as that :-) > > -- > Tom Chiverton > Advanced ColdFusion Programmer > > Tel: +44(0)1749 834997 > email: [EMAIL PROTECTED] > BlueFinger Limited > Underwood Business Park > Wookey Hole Road, WELLS. BA5 1AF > Tel: +44 (0)1749 834900 > Fax: +44 (0)1749 834901 > web: www.bluefinger.com > Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple > Quay, BRISTOL. BS1 6EG. > *** This E-mail contains confidential information for the addressee > only. If you are not the intended recipient, please notify us > immediately. You should not use, disclose, distribute or copy this > communication if received in error. No binding contract will > result from > this e-mail until such time as a written document is signed > on behalf of > the company. BlueFinger Limited cannot accept responsibility for the > completeness or accuracy of this message as it has been > transmitted over > public networks.*** > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
