summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qwineventnotifier.cpp
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2019-11-16 20:39:20 +0200
committerAlex Trotsenko <alex1973tr@gmail.com>2020-07-29 18:34:34 +0300
commit8969070cfdeab4502a693bdf46a572cbea50bab3 (patch)
tree32b145683044e02725a16cb6adba57d7d4346643 /src/corelib/kernel/qwineventnotifier.cpp
parent9d55d6b45bfc1f4e3c603bcc95f694ebe3a9206f (diff)
QEventDispatcherWin32: redesign event notifiers activation
The previous implementation multiplexed callback-based event notification into a single proxy event (cf. 85403d0af), which was in turn object-waited for (this was the case since the beginning of public qt history). It makes more sense to multiplex into a posted message, because that also works with foreign event loops that do not know anything about our event objects. Task-number: QTBUG-64443 Change-Id: I97945ac8b5d7c8582701077134c0aef4f3b5a18f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/kernel/qwineventnotifier.cpp')
-rw-r--r--src/corelib/kernel/qwineventnotifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qwineventnotifier.cpp b/src/corelib/kernel/qwineventnotifier.cpp
index b306e3aba1..8cf6b018d4 100644
--- a/src/corelib/kernel/qwineventnotifier.cpp
+++ b/src/corelib/kernel/qwineventnotifier.cpp
@@ -246,7 +246,7 @@ static void CALLBACK wfsoCallback(void *context, BOOLEAN /*ignore*/)
QEventDispatcherWin32Private *edp = QEventDispatcherWin32Private::get(
static_cast<QEventDispatcherWin32 *>(eventDispatcher));
++nd->signaledCount;
- SetEvent(edp->winEventNotifierActivatedEvent);
+ edp->postActivateEventNotifiers();
}
bool QWinEventNotifierPrivate::registerWaitObject()