summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2018-11-05 16:59:20 +0100
committerMichael Meeks <michael.meeks@collabora.com>2018-11-06 15:55:42 +0100
commit3fb90f6eab998d0fda07bd3f4a2ebf650e6b6a61 (patch)
tree89548e47f9487ec8784f6a0e6af92114f271f539 /vcl
parent2bc5ab312b1cdb8c299253a54fecdd3c64319fd2 (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>
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 a175075df2d7..49f4aa213b3a 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -390,7 +390,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)