diff options
author | Tor Arne Vestbø <torarnv@gmail.com> | 2019-05-10 16:06:47 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-05-13 15:19:35 +0000 |
commit | 09504d484c258eafb10ac12eeda1becda5b985c1 (patch) | |
tree | dac11c218d4dfd056237f55b644eea6d7d264577 /examples/widgets/widgets/wiggly/dialog.h | |
parent | 7eed1e40d4d3b6a066bac52995eed7e75d17de2d (diff) |
macOS: Guard against display on non-main threads
AppKit will in some cases ask our view to display on secondary threads if
we call APIs that are only supposed to be called on the main thread, such
as -[NSOpenGLContext setView:] or -[NSOpenGLContext update].
Forwarding this display-request is bad, as QtGui expects all window system
events to come on the main thread, and we can easily deadlock client code
such as the Qt Quick threaded renderer.
Change-Id: I1daeabf1dca6ca8ba908d3998b444a2089681e3a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'examples/widgets/widgets/wiggly/dialog.h')
0 files changed, 0 insertions, 0 deletions