qt5base-lts/tests/auto/corelib/thread/thread.pro
Andrei Golubev 385f0732d9 Add QPromise implementation
QPromise and QFuture created from it share the same internal state
(namely, QFutureInterface object). QPromise provides high-level
management of the shared resource, ensuring thread-safe behavior
on construction and destruction (also taking into account
QFuture::waitForFinished() semantics).

QFuture acts as a primary controller of QPromise via action
initiating methods such as suspend() or cancel(). QPromise is
equipped with methods to check the status, but the actual
handling of QFuture action "requests" is user-defined.

[ChangeLog][QtCore][QPromise] Added QPromise class to accompany
QFuture. It allows one to communicate computation results and
progress to the QFuture via a shared state.

Task-number: QTBUG-81586
Change-Id: Ibab9681d35fe63754bf394ad0e7923e2683e2457
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-06-09 17:21:38 +03:00

29 lines
525 B
Prolog

TEMPLATE=subdirs
qtConfig(thread) {
SUBDIRS=\
qatomicint \
qatomicinteger \
qatomicpointer \
qresultstore \
qfuture \
qfuturesynchronizer \
qmutex \
qmutexlocker \
qreadlocker \
qreadwritelock \
qsemaphore \
qthread \
qthreadonce \
qthreadpool \
qthreadstorage \
qwaitcondition \
qwritelocker \
qpromise
}
qtHaveModule(concurrent) {
SUBDIRS += \
qfuturewatcher
}