New shared pointer

Thiago Macieira thiago at kde.org
Fri Sep 9 21:52:28 BST 2005


Frerich Raabe wrote:
>the current shared pointer implementation in KShared/KSharedPtr is a
> little too simplistic IMHO:

I'm sorry Frerich, but what is your objective for this class? If you plan 
on simply using an automatic pointer, I think it should be renamed and 
not try to do any sharing at all.

If you plan on doing sharing, however, I *strongly* recommend you use 
QShared/QSharedData, even if internally, because it's thread-safe and 
atomic, whereas your implementation isn't, or, at least, QAtomic.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se 
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050909/2649dcc7/attachment.sig>


More information about the kde-core-devel mailing list