Threading Classes

These Qt Core classes provide threading support to applications. The Thread Support in Qt page covers how to use these classes.

Concurrent Filter and Filter-Reduce

Selecting values from a sequence and combining them, all in parallel

Concurrent Map and Map-Reduce

Transforming values from a sequence and combining them, all in parallel

Concurrent Run

A simple way to run a task in a separate thread

Concurrent Task

A configurable way to run a task in a separate thread

QAtomicInteger

Platform-independent atomic operations on integers

QAtomicPointer

Template class that provides platform-independent atomic operations on pointers

QFuture

Represents the result of an asynchronous computation

QFutureSynchronizer

Convenience class that simplifies QFuture synchronization

QMutex

Access serialization between threads

QMutexLocker

Convenience class that simplifies locking and unlocking mutexes

QPromise

Way to store computation results to be accessed by QFuture

QRecursiveMutex

Access serialization between threads

QRunnable

The base class for all runnable objects

QSemaphore

General counting semaphore

QSemaphoreReleaser

Exception-safe deferral of a QSemaphore::release() call

QWaitCondition

Condition variable for synchronizing threads

QtConcurrent

High-level APIs that make it possible to write multi-threaded programs without using low-level threading primitives

QtConcurrent::QTaskBuilder

Used for adjusting task parameters

QtFuture::WhenAnyResult

QtFuture::WhenAnyResult is used to represent the result of QtFuture::whenAny()