summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow.cpp
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2021-09-22 17:54:40 +0200
committerIvan Solovev <ivan.solovev@qt.io>2021-10-07 11:14:37 +0200
commit5b839c103de980e0b98b01bd067721f2406f4e33 (patch)
tree491cf3706b9b0c06f7b43a754a7ffbb5beeec7eb /src/gui/kernel/qwindow.cpp
parentc0d3c9e0240e314b835c6585e26ad9b3bf21604d (diff)
QWinRtFunctions::await() - introduce early exit condition
The await() method waits for the result of async operation in a non-blocking way (triggering processEvent periodically). It means that during this wait some other things might happen, and there would be no reason to wait for the end of the operation execution. This patch implements an additional parameter - a function that specifies a condition for an early return. When this function returns true, the await() method returns with E_ABORT, which makes it possible to distinguish it from timer expiration. Task-number: QTBUG-96057 Change-Id: Ide73d768b7cbb3a35be7160ce7555aeb2dca5235 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> (cherry picked from commit 1f86957f1dd14cc538e7ad9ffee4eb63001af407)
Diffstat (limited to 'src/gui/kernel/qwindow.cpp')
0 files changed, 0 insertions, 0 deletions