> >  Because there are no race conditions, and it doesn't matter if it
> > happens more than once (setting a variable to the same value is
> > irrelevant, unlike instantiating a CFC, for example).
> 
> maybe technically not a race condition (i guess) but what about the time
> between initializing the rb structs, setting the init flag & other
> threads checking for the init flag?

Well, it IS a race condition, but it's one you can ignore.  That was
my point.  You're just assigning variables, so it doesn't matter if it
happens twice. Not that I wouldn't lock it, but it's not critical that
you do, because the race condition has no adverse consequences.

cheers,
barneyb


On Fri, 25 Mar 2005 13:00:13 +0700, Paul Hastings
<[EMAIL PROTECTED]> wrote:
> Barney Boisvert wrote:
> > onApplicationStart is single threaded by CF server, so there's NEVER a
> > need to lock inside that method.  One of the really nice features of
> 
> i missed that he was using mx 7's new app stuff.
> 
> >  Because there are no race conditions, and it doesn't matter if it
> > happens more than once (setting a variable to the same value is
> > irrelevant, unlike instantiating a CFC, for example).
> 
> maybe technically not a race condition (i guess) but what about the time
> between initializing the rb structs, setting the init flag & other
> threads checking for the init flag?
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:200011
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to