qt5base-lts/tests/auto/concurrent
Jarek Kobus 79fd1cb2c6 Reuse the non blocking implementation for blocking one
Replace the implementation of blockingMappedReduced():
after calling non-blocking version of mappedReduced() we are getting
the future object, so we may call in sequence result(), which
will block and return the result when the all tasks are done.

The same is done with blockigMapped(), which calls blockingMappedReduced()
with a custom reduce function.

Looks like with this pattern we can reuse the non-blocking version
for implementing blocking version of mapped / filtered methods.

Task-number: QTBUG-83918
Change-Id: I7f240cfbd04834d551ff79d717b72194a26996d7
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-06-05 12:09:59 +02:00
..
qtconcurrentfilter Reuse the non blocking implementation for blocking one 2020-06-05 12:09:59 +02:00
qtconcurrentiteratekernel Enable setting custom QThreadPool for QtConcurrent methods 2020-05-18 10:03:29 +02:00
qtconcurrentmap Reuse the non blocking implementation for blocking one 2020-06-05 12:09:59 +02:00
qtconcurrentmedian Resolve Qt6 TODO items, replace Median and BlockSizeManager 2020-04-09 02:49:18 +02:00
qtconcurrentrun Improve Map|Map-Reduce and Filter|Filter-Reduce implementation 2020-04-14 19:06:27 +02:00
qtconcurrenttask QTaskBuilder::spawn: add an overload that doesn't return a future object 2020-04-14 17:44:13 +02:00
qtconcurrentthreadengine Enable setting custom QThreadPool for QtConcurrent methods 2020-05-18 10:03:29 +02:00
CMakeLists.txt QtConcurrent: add fluent interface to configure a task before run 2020-03-29 20:44:32 +01:00
concurrent.pro QtConcurrent: add fluent interface to configure a task before run 2020-03-29 20:44:32 +01:00