Avoid using wx GDI classes from non-main thread in wxOSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:43:18 +0000 (21:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 5 Nov 2010 21:43:18 +0000 (21:43 +0000)
commitc71096a05575db197c20fa78a63ee1195d615d27
treed9dd48077b3e996b950f91bed13ec315a9534082
parented310c35b46e761d3ab37d81f0f416e8772a9fbd
Avoid using wx GDI classes from non-main thread in wxOSX/Cocoa.

OS X uses a background thread for pulsing the default button and we intercept
the draw requests from it. As our drawing code is not MT-safe, executing it
from the non-main thread can result in crashes.

Avoid this by simply not doing anything fancy when called from a background
thread and simply deferring to the superclass instead.

Closes #12407.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/cocoa/window.mm