Il 22 gen 2016 6:03 PM, "Bubke Marco" <marco.bu...@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.
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to