Exemple #1
0
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;
}
Exemple #2
0
bool KMatrix::operator ==(const KMatrix &other) const
{
    QReadLocker lock(&this->rwLock);
    QReadLocker otherLock(&other.rwLock);
    return this->value == other.value;
}