PDA

View Full Version : QVector<> thread safe?



RolandHughes
27th February 2013, 16:50
I'm looking for a pointer to a link to official documentation which will either confirm or deny if QVector<> is thread safe when it comes to appends and deletions. Cannot seem to find _official_ word either way.

Thanks,
Roland

wysota
27th February 2013, 17:04
A Qt class is only thread-safe is the documentation mentions that on top of the page (with the wording "Note: All functions in this class are thread-safe."). Since there is no such mention for QVector, the official docs say it is not thread-safe. You can compare it to QMutex, for example.