Kaydet (Commit) b15b97ee authored tarafından Pranav Kant's avatar Pranav Kant Kaydeden (comit) Noel Grandin

tdf#88230: Cleanup solar mutex yielding

Fallout from 9bb8ba4e

Change-Id: I84fab3d8f12015b5d5a4f93ea0164bc964de17bd
Reviewed-on: https://gerrit.libreoffice.org/14973Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst d7a4135b
...@@ -1865,11 +1865,12 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD ...@@ -1865,11 +1865,12 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD
sleep(1); sleep(1);
} }
// Creation, use and destruction of a VirtualDevice needs to be
// protected by the SolarMutex, it seems.
Application::AcquireSolarMutex(1);
if (pViewShell) if (pViewShell)
{ {
// Creation, use and destruction of a VirtualDevice needs to be
// protected by the SolarMutex, it seems.
SolarMutexReleaser aReleaser;
SystemGraphicsData aData; SystemGraphicsData aData;
aData.rCGContext = (CGContextRef) context; aData.rCGContext = (CGContextRef) context;
// the Size argument is irrelevant, I hope // the Size argument is irrelevant, I hope
...@@ -1877,7 +1878,7 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD ...@@ -1877,7 +1878,7 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD
// paint to it // paint to it
pViewShell->PaintTile(aDevice, contextWidth, contextHeight, tilePosX, tilePosY, tileWidth, tileHeight); pViewShell->PaintTile(aDevice, contextWidth, contextHeight, tilePosX, tilePosY, tileWidth, tileHeight);
} }
Application::ReleaseSolarMutex();
SAL_INFO("sw.tiled", "touch_lo_draw_tile(" << contextWidth << "x" << contextHeight << ", (" << tileDpxPosition.x << "," << tileDpxPosition.y << "), " << tileDpxSize.width << "x" << tileDpxSize.height << ") return"); SAL_INFO("sw.tiled", "touch_lo_draw_tile(" << contextWidth << "x" << contextHeight << ", (" << tileDpxPosition.x << "," << tileDpxPosition.y << "), " << tileDpxSize.width << "x" << tileDpxSize.height << ") return");
#else #else
(void) context; (void) context;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment