Is QFuture assign operator thread-safe?
-
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.