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

New commits:
commit ec3916d424f828b5b2459efb4097abf95835a2ae
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Fri Apr 26 08:45:54 2019 +0200
Commit:     Stephan Bergmann <[email protected]>
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 <[email protected]>

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();
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to