[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/data
Bastian Holst
bastianholst at gmx.de
Fri May 21 23:13:15 CEST 2010
SVN commit 1129289 by bholst:
GeoDataRegion assignment operator now threadsafe.
M +5 -0 GeoDataRegion.cpp
--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataRegion.cpp #1129288:1129289
@@ -152,7 +152,12 @@
GeoDataRegion &GeoDataRegion::operator=( const GeoDataRegion& other )
{
+ // Self assignment
+ if ( this == &other ) return *this;
+
+ other.d->m_mutex.lock();
GeoDataRegion temp( other );
+ other.d->m_mutex.unlock();
swap( temp );
return *this;
}
More information about the Marble-commits
mailing list