[Development] Question about QCoreApplicationData::*_libpaths

Kevin Kofler kevin.kofler at chello.at
Fri Jan 22 23:56:16 CET 2016


Giuseppe D'Angelo wrote:
> 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.

Of course you would. You would have a data race there even without CoW.

        Kevin Kofler




More information about the Development mailing list