[Development] Question about QCoreApplicationData::*_libpaths

Giuseppe D'Angelo dangelog at gmail.com
Fri Jan 22 19:37:02 CET 2016


Il 22 gen 2016 6:03 PM, "Bubke Marco" <Marco.Bubke at theqtcompany.com> ha
scritto:
>
> Actually what is happen if I am in the middle of changing a qvector,  and
then copying the vector in an other thread?
>

If you have QVector<Foo> v; , and

thread 1 does v[5] = ...;
thread 2 does QVector<Foo> copy = v;

without synchronizations, then you have a data race since QVector is only
reentrant.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160122/78c31bb7/attachment.html>


More information about the Development mailing list