Qt 6.11 is out! See what's new in the release
blog
Is QFuture assign operator thread-safe?
General and Desktop
1
Posts
1
Posters
592
Views
1
Watching
-
According to documentation all QFuture methods are thread-safe, except const_iterator.
I reviewed sources to make sure and found that assign operator implementation has no locks at all.
https://qt.gitorious.org/qt/qtbase/source/c8172953ed6d3776178b9a37c0773d648cfdd9f2:src/corelib/thread/qfutureinterface.cpp#L425
Is it bug or expected behavior? Do I have to guard QFuture in my code?Thank you.