d-conf (was: kdeinit (was: Summary from Buildsystem BoF at Desktop Summit))

Oswald Buddenhagen ossi at kde.org
Sun Aug 21 16:46:22 BST 2011

On Sun, Aug 21, 2011 at 05:23:14PM +0200, Thiago Macieira wrote:
> On Sunday, 21 de August de 2011 16:40:32 Oswald Buddenhagen wrote:
> > > If there is, you return QString::fromRawData.
> > 
> > uhm, no, you must make a deep copy, otherwise you get a time bomb.
> You can also use a QStringData with a regular refcount and just watch as it 
> becomes 1. When all the QStrings in this segment of mmapped memory have 
> refcount 1 or 0, then you can unmap it.
well, yes, you can put a (shallow) copy of every qstring you hand out
into an appropriate data structure and from there watch the refcount.

but maps become invalid when the underlying data changes. in fact, it
would seem that reads must be locked out while a write is in progress.

More information about the kde-core-devel mailing list