[Development] atomic reference counting implementation

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Aug 7 22:26:11 CEST 2019

Il 07/08/19 20:00, Mutz, Marc via Development ha scritto:
> This was discussed in
> https://codereview.qt-project.org/c/qt/qtbase/+/66118. See, in
> particular, Olivier's comment.
> TL;DR: ref() is documented to be ordered, so cannot be changed.

On the other hand, QSharedData's ref member is an implementation detail 
(the QRefCount class is even private API), and the semantics of 
ref/deref on it are undocumnted, so *that* could be changed right now. 
Although I'd still feel very uncomfortable at doing so.

My 2 c,
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20190807/3d1ce367/attachment.bin>

More information about the Development mailing list