[Development] QIntrusiveSharedPointer
Allan Sandfeld Jensen
kde at carewolf.com
Thu Aug 8 10:46:17 CEST 2019
On Thursday, 8 August 2019 10:29:41 CEST Philippe wrote:
> Yet, what is the usefullness of qIntrusiveDetached()?
> Because the result depends on a relaxed load, hence the moment after
> qIntrusiveDetached() was evaluated, rechecking qIntrusiveDetached()
> could give a different result.
>
You are assumed to have an outside synchronization when using most Qt classes
across multiple threads. Most are not inherently thread safe, especially not
the implicitly shared ones.
'Allan
More information about the Development
mailing list