6.0.0-rc4Source

Nt Concurrent C++ Classes

Functions that run code in the threads of a pool without using threads directly.

Using the Module

target_link_libraries(app PRIVATE Nt::Concurrent)

Nt Concurrent runs functions in the threads of a QThreadPool and gives back a QFuture for what they produce. QtConcurrent::run() and QtConcurrent::task() start one function; QtConcurrent::map(), QtConcurrent::mapped(), QtConcurrent::filter(), QtConcurrent::filtered() and their Reduced forms apply a function to every item of a sequence, sharing the items between the threads. See Thread Support in Nt.

Link with Nt::Concurrent and include <QtConcurrent>.

Classes

QtConcurrentThe QtConcurrent namespace provides high-level APIs that make it possible to write multi-threaded programs without using low-level threading primitives.
QtConcurrent::QTaskBuilderThe QTaskBuilder class is used for adjusting the parameters of a task before it is started.