summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-21 10:12:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-21 10:40:18 +0100
commit4b83a4131ff6f2ddf457f6a2754d491722d3e2dc (patch)
tree8b119db37fa4d0154ef3884a50b9e8b050fb8ff1 /vcl/source
parentdc873abca8fa070cd50f82b640a425ffbb651f2b (diff)
no point in release solar mutex before calling PostUserEvent
which will just acquire it again Change-Id: If483a74ccac762f288bcd05956066ce726a96516 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127212 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/helper/threadex.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/helper/threadex.cxx b/vcl/source/helper/threadex.cxx
index 1d55ddc08562..cbd342bd28df 100644
--- a/vcl/source/helper/threadex.cxx
+++ b/vcl/source/helper/threadex.cxx
@@ -51,8 +51,8 @@ void SolarThreadExecutor::execute()
{
m_aStart.reset();
m_aFinish.reset();
- SolarMutexReleaser aReleaser;
ImplSVEvent* nEvent = Application::PostUserEvent(LINK(this, SolarThreadExecutor, worker));
+ SolarMutexReleaser aReleaser;
if (m_aStart.wait() == osl::Condition::result_timeout)
{
m_bTimeout = true;