[Interest] Lifetime of data involved in QtConcurrent functions
thiago.macieira at intel.com
Sun Sep 30 07:30:19 CEST 2012
On sábado, 29 de setembro de 2012 19.02.02, Stephen Chu wrote:
> Does mapped() make a copy of myList? Or do I have to make sure it lasts
> until future.isFinished()?
It's a QList. A copy is made.
> Also, is it OK for future to go out of scope? Or do I once again have to
> keep it alive until it's all finished?
Yes, that's fine for it to go out of scope. The execution will continue.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Interest