summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengine_raster_p.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <torarnv@gmail.com>2019-05-10 16:06:47 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-05-13 15:19:35 +0000
commit09504d484c258eafb10ac12eeda1becda5b985c1 (patch)
treedac11c218d4dfd056237f55b644eea6d7d264577 /src/gui/painting/qpaintengine_raster_p.h
parent7eed1e40d4d3b6a066bac52995eed7e75d17de2d (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 'src/gui/painting/qpaintengine_raster_p.h')
0 files changed, 0 insertions, 0 deletions