From 453aeef36c8455ecbb5ef4e58109b4610d5ba243 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 23 Jul 2014 22:54:00 +0200 Subject: avoid deadlocks in BENCHMARK_MODE Change-Id: I1f994ecb6efbd302430062421ccc953dee904741 --- chart2/source/view/charttypes/GL3DBarChart.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'chart2/source') diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index e3aef22c79e1..16ace2395fcb 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -509,6 +509,12 @@ public: void GL3DBarChart::moveToDefault() { + if(BENCH_MARK_MODE) + { + // add correct handling here!! + return; + } + if(mpRenderThread.is()) mpRenderThread->join(); @@ -540,6 +546,12 @@ void GL3DBarChart::clickedAt(const Point& rPos, sal_uInt16 nButtons) if(nButtons != MOUSE_LEFT) return; + if (BENCH_MARK_MODE) + { + // add correct handling here !! + return; + } + sal_uInt32 nId = 5; { PickingModeSetter aPickingModeSetter(mpRenderer.get()); @@ -592,6 +604,7 @@ void GL3DBarChart::render() { if (BENCH_MARK_MODE) return; + osl::MutexGuard aGuard(maMutex); update(); } @@ -650,6 +663,12 @@ glm::vec3 GL3DBarChart::getCornerPosition(sal_Int8 nId) void GL3DBarChart::moveToCorner() { + if(BENCH_MARK_MODE) + { + // add correct handling here!! + return; + } + osl::MutexGuard aGuard(maMutex); if(mpRenderThread.is()) mpRenderThread->join(); -- cgit