Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2010-02-16 19:53:59 +0000 (Tue, 16 Feb 2010)
fixed: double-checked locking pattern is broken
--- trunk/xbmc/Zeroconf.cpp 2010-02-16 19:53:43 UTC (rev 27910)
+++ trunk/xbmc/Zeroconf.cpp 2010-02-16 19:53:59 UTC (rev 27911)
@@ -117,22 +117,18 @@
+ CAtomicSpinLock lock(sm_singleton_guard);
- //use double checked locking
- CAtomicSpinLock lock(sm_singleton_guard);
- smp_instance = new CZeroconfDummy;
+ smp_instance = new CZeroconfDummy;
- smp_instance = new CZeroconfOSX;
+ smp_instance = new CZeroconfOSX;
- smp_instance = new CZeroconfAvahi;
+ smp_instance = new CZeroconfAvahi;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Sign up for the SourceForge newsletter: