BLocale& BLocale::operator=(const BLocale& other) { if (this == &other) return *this; BAutolock lock(fLock); BAutolock otherLock(other.fLock); if (!lock.IsLocked() || !otherLock.IsLocked()) return *this; fConventions = other.fConventions; fLanguage = other.fLanguage; return *this; }
bool KMatrix::operator ==(const KMatrix &other) const { QReadLocker lock(&this->rwLock); QReadLocker otherLock(&other.rwLock); return this->value == other.value; }