vcl/headless/svpinst.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 9d7db7316ab2f3d1a6e578625d743e6004292fb4
Author: Andras Timar <[email protected]>
AuthorDate: Mon Nov 5 16:59:20 2018 +0100
Commit: Andras Timar <[email protected]>
CommitDate: Thu Nov 8 12:16:32 2018 +0100
update main thread "properly" in headless case
Change-Id: Ie76555a007db13e89f06c85d02beebf84eadea0b
Reviewed-on: https://gerrit.libreoffice.org/62912
Reviewed-by: Michael Meeks <[email protected]>
Tested-by: Michael Meeks <[email protected]>
(cherry picked from commit 3fb90f6eab998d0fda07bd3f4a2ebf650e6b6a61)
Reviewed-on: https://gerrit.libreoffice.org/63062
Tested-by: Jenkins
Reviewed-by: Andras Timar <[email protected]>
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)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits