[Development] QtCS2024 QFuture/QPromise

Thiago Macieira thiago.macieira at intel.com
Fri Sep 6 22:36:09 CEST 2024


On Friday 6 September 2024 16:21:56 CEST Mårten Nordheim via Development 
wrote:
> But do we make it QList<int> _just in case_ there are multiple results
> added?

From my limited exposure to QFuture/QPromise and in particular the bugs I've 
had to triage, that is a design flaw.

The future/promise doesn't know how many results will be provided, so there's 
a race condition in it flagging the future has arrived with more results 
arriving.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Platform & System Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240906/13edb20c/attachment.bin>


More information about the Development mailing list