[Libreoffice-commits] core.git: vcl/win

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 26 09:31:15 UTC 2019


 vcl/win/app/salinst.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit ec3916d424f828b5b2459efb4097abf95835a2ae
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Apr 26 08:45:54 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Apr 26 11:30:00 2019 +0200

    Reuse base class IsCurrentThread
    
    Change-Id: Ie185983d7cf546def5e310493c7b26f520bbe08d
    Reviewed-on: https://gerrit.libreoffice.org/71344
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index b754dd35d362..c4a290adb092 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -213,8 +213,7 @@ void ImplSalYieldMutexRelease()
 bool SalYieldMutex::IsCurrentThread() const
 {
     if ( !GetSalData()->mpInstance->m_nNoYieldLock )
-        // For the Windows backend, the LO identifier is the system thread ID
-        return m_nThreadId == GetCurrentThreadId();
+        return SolarMutex::IsCurrentThread();
     else
         return GetSalData()->mpInstance->IsMainThread();
 }


More information about the Libreoffice-commits mailing list