which should i use and why should i use them when building a multithreaded QT app, the QT container classes or those provided by the STL?
which should i use and why should i use them when building a multithreaded QT app, the QT container classes or those provided by the STL?
artificial intelligence is no match for natural stupidity
Quoted from: doc.trolltech.comQt Concurrent supports several STL-compatible container and iterator types, but works best with Qt containers that have random-access iterators, such as QList or QVector...
The answer is: depends on many things (like how do you use threads, what modification you do to data...)
Recommended reading more here
sparticus_37 (11th May 2010)
Neither STL nor Qt containers are thread-safe. Both STL and Qt containers are reentrant.
Bookmarks