Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7.3
-
None
-
-
1
-
Foundation Sprint 130
Description
QFuture::isValid() returns true as soon as QPromise::start() has been called. According to the documentation this is false behavior:
"bool QFuture::isValid() const
Returns true if a result or results can be accessed or taken from this QFuture object. Returns false after the result was taken from the future."
As you can see in my attached excample future.isValid = true and future.resultCount() = 0 at the same time.
When trying to take a result then the thread blocks.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-136530 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
643730,1 | Clarify QFuture::isValid() docs | dev | qt/qtbase | Status: NEW | +1 | 0 |