prevent deadlocks
svn path=/trunk/KDE/kdelibs/; revision=1044840
This commit is contained in:
parent
f58a5a844b
commit
fd6cd93e9d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user