summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2019-11-16 16:02:29 +0200
committerAlex Trotsenko <alex1973tr@gmail.com>2020-03-03 19:44:01 +0200
commit23785face5a01bf63334fd32975718468d5f816e (patch)
treecfdea28f388edfd2c994fe62dc350f191c71be95 /tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp
parentb711ee255515440b923a898f65f6afe13d63916f (diff)
QEventDispatcherWin32: unregister event notifiers on close
When QEventDispatcherWin32::closingDown() is called, threadData->eventDispatcher is already nullptr and the application will no longer process the events. Thus, just as it works for socket notifiers and timers, it makes sense to disable all active event notifiers at this point. Otherwise, it seems possible that an object in signalled state can provoke a data race in the notifier's callback on 'edp' pointer, if QWin32EventDispatcher destructor is running simultaneously. Task-number: QTBUG-64152 Task-number: QTBUG-70214 Change-Id: I6e77f3eeca1b0ea639021e73b86798cba0200ebf Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp')
0 files changed, 0 insertions, 0 deletions