[Kst] Re: branches/work/kst/portto4/kst

Peter Kümmel syntheticpp at gmx.net
Fri Jan 7 14:20:51 CET 2011


On 07.01.2011 13:05, Barth Netterfield wrote:
> Hi Peter,
> 
> The BLASTpol flight is over, and I can finally stick my head above water.
> 
> Could you give a quick summary of the changes you made to the pointer
> system?  Has it been merged into trunk?  Is it still under development?

All changes are in the branch only, and I've stopped further working on
this branch because a complete external ref-count seems to complex, and
changing the SharePtr implementation that it uses QShared-/QWeakPointer
makes SharePtr thread-safe but will not have much other improvements.

And when we have problems with not deleted objects one has to go deep
into the ObjectStore/use-flag code which is another task.

Maybe we could merge back the QShared-/QWeakPointer implementation, but
at the current state PluginInterface already inherits QObject (then
we could everywhere use qobject_cast) and then all plugins must not
include QObject and we also have to make the destructor public for each
plugin. We will also lose binary compatibility of the plugins of older
Kst versions.

But I'm not sure if it's worth the effort. The code is not lost, it's
in the branch, and maybe we have other or better ideas later, or will
have real reasons to use the code in the branch.

You could have a look at it, I've also posted the diff to the list,
maybe you have an other idea how it could improve Kst code base.

Peter


More information about the Kst mailing list