[Kst] branches/work/kst/hierarchy/kst/src/libkstmath
Eli Fidler
eli at staikos.net
Tue Dec 12 17:54:25 CET 2006
SVN commit 612802 by fidler:
fix the deadlock properly
M +3 -1 kstcplugin.cpp
--- branches/work/kst/hierarchy/kst/src/libkstmath/kstcplugin.cpp #612801:612802
@@ -653,7 +653,9 @@
if (!_outputScalars.contains(paramName)) {
KstWriteLocker blockScalarUpdates(&KST::scalarList.lock());
KstScalarPtr s = new KstScalar(KstObjectTag(paramName, tag()), this, scalarValue);
- //s->KstObject::writeLock(); // causes a deadlock
+ if (myLockStatus() == KstRWLock::READLOCKED) {
+ s->KstObject::writeLock();
+ }
_outputScalars.insert(paramName, s);
++_outScalarCnt;
} else {
More information about the Kst
mailing list