summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2018-11-05 16:59:20 +0100
committerAndras Timar <andras.timar@collabora.com>2018-11-08 12:16:32 +0100
commit9d7db7316ab2f3d1a6e578625d743e6004292fb4 (patch)
treeb323bd81fbdf2185d518bae04f357529642ab954 /vcl
parent9e0770ea7e0cf094add54ad64bc9ff825d24bbe1 (diff)
update main thread "properly" in headless case
Change-Id: Ie76555a007db13e89f06c85d02beebf84eadea0b Reviewed-on: https://gerrit.libreoffice.org/62912 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 3fb90f6eab998d0fda07bd3f4a2ebf650e6b6a61) Reviewed-on: https://gerrit.libreoffice.org/63062 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpinst.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 25e15ca9961a..b7df88e2ce98 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -398,7 +398,10 @@ bool SvpSalInstance::IsMainThread() const
void SvpSalInstance::updateMainThread()
{
if (!IsMainThread())
+ {
m_MainThread = osl::Thread::getCurrentIdentifier();
+ ImplGetSVData()->mnMainThreadId = osl::Thread::getCurrentIdentifier();
+ }
}
bool SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents)