On 19/07/2026 00:19, NIkolai Marchenko wrote:
>  to call the same function, on the same data, from multiple threads, without synchronization, provided that any shared data is accessed exclusively along const paths

I think something went wrong with the wording here. "Same function, on the same instance, from multiple threads..."

"Same instance" is part of the "same data". For non-static member functions, the `this` pointer (the instance) belongs to the data the function is accessing.

But I was imprecise on another axis: the extended contract means you can even call *different* functions on the same data, provided all those functions access shared data along const paths. This would be the case for e.g. different const methods of a class, being called at the same time on the same instance.

My 2 c,
--
Giuseppe D'Angelo | [email protected] | 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 - Trusted Software Excellence

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to