diff options
| author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-01-18 13:35:24 +0100 |
|---|---|---|
| committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-01-21 01:51:20 +0100 |
| commit | afdae3618a08da9f2c41b7c4ea57219f444ee324 (patch) | |
| tree | 63b0c3f2f7ea4e036a97e7e33565ae7a47dbc3f4 /src/corelib/thread/qfutureinterface.cpp | |
| parent | 614847eae99bd4b6ce375f9f5572acfb3b513307 (diff) | |
Create QFutures returned by QtFuture::when* methods via QPromise
This is required to ensure that the continuation attached to a
QFuture returned by QtFuture::when* methods is cleaned in the destructor
of the associated QPromise, so that it doesn't keep any ref-counted
copies to the shared data, thus preventing it from being deleted.
Task-number: QTBUG-99534
Pick-to: 6.3
Change-Id: If4e2929b2e638d6b48c95f0aef9dc886066cedbe
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
0 files changed, 0 insertions, 0 deletions
