summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-06 23:43:05 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-07 01:13:36 +0300
commit8ed93fef13be39815b452474e9e44bf8b6861ea3 (patch)
tree085ea7bcfcc1327c75952ce1bc3f568cb441f0ee
parent6a0c8c728dac5437f6a39f995d6ac24668560a99 (diff)
We need to acquire the yield mutex here
Otherwise we get an assertion failure in a dbgutil build from the DBG_TESTSOLARMUTEX() in OutputDevice::ImplReleaseGraphics() when quitting, at least in 64-bit LO on OS X. Change-Id: Ieb54e6b58033279f807fe91f4f6139018f643903
-rw-r--r--vcl/source/gdi/virdev.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index 35595507ea9c..559a1920dd7f 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -184,6 +184,10 @@ VirtualDevice::~VirtualDevice()
ImplSVData* pSVData = ImplGetSVData();
+ // OutputDevice::ImplReleaseGraphics() requires the yield mutex to
+ // be held, hmm.
+ pSVData->mpDefInst->AcquireYieldMutex( 1 );
+
ImplReleaseGraphics();
if ( mpVirDev )