[Interest] QImage::copy threadsafe?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Sun Nov 10 09:50:44 CET 2019

Il 09/11/19 20:01, maitai ha scritto:
> I'll try to make a copy, I am reluctant because I must be very careful
> with memory and time to copy.

As I said, the copies will be shallow copies, very cheap to make 
(they're just increases of a reference counter). The fact that the 
payload is actually shared amongst the copies _is_ an implementation 
detail: QImage is guaranteed to be reentrant, and you're acting on 
different objects, so you're honouring the contract.

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/interest/attachments/20191110/571d3ba4/attachment.bin>

More information about the Interest mailing list