So in this case, the lock is for performance reasons?
No. It's to prevent the initialization from being run twice. That is not necessarily a performance issue.
Does that still qualify as a race condition?
Depending on exactly how the initialization is coded, it may not be safe to run the initialization more than once concurrently - therefore, yes, you have a potential race condition.
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive." -- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
