diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-08-17 16:00:26 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-08-18 09:41:55 +0200 |
commit | 642b9fce81b46e23b35b17e8284bd81bdba57fdd (patch) | |
tree | 22c5f33e691bbbe6289acde7bbbc6b9f3191c09c /config.tests | |
parent | c4ac9e74c79ebba3493ce29b25623b8c39b021a4 (diff) |
QtConcurrent::run: support non default-constructible return types
The QtConcurrent::RunFunctionTask class keeps a variable to store the
result of QtConcurrent::run when it becomes available, so that it can be
reported afterwards. This requires the result type to be
default-constructible. However there's no need in storing the result, it
can be reported immediately after it becomes available.
Pick-to: 6.1 6.2
Fixes: QTBUG-95214
Change-Id: I95f3dbff0ab41eaa81b104a8834b37d10a0d193a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'config.tests')
0 files changed, 0 insertions, 0 deletions