prevent deadlocks

svn path=/trunk/KDE/kdelibs/; revision=1044840
This commit is contained in:
Aaron J. Seigo 2009-11-04 19:01:43 +00:00
parent f58a5a844b
commit fd6cd93e9d

View File

@ -251,6 +251,10 @@ RunnerContext::~RunnerContext()
RunnerContext &RunnerContext::operator=(const RunnerContext &other)
{
if (this->d == other.d) {
return *this;
}
LOCK_FOR_WRITE(this)
LOCK_FOR_READ((&other))
d = other.d;