[Libreoffice-commits] core.git: Branch 'feature/tiledrendering' - vcl/generic

Tor Lillqvist tml at collabora.com
Tue Oct 29 12:21:27 CET 2013


 vcl/generic/app/geninst.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b903c2f776b2d2b6fa08c7e017bcf1642ce2b82d
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Oct 29 13:16:39 2013 +0200

    Add a SAL_WARN_IF to get more verbose information when CheckYieldMutex() fails
    
    Change-Id: Ia9b9e43a25c1d86e3f8c6d9a29d54dd94625bb0d

diff --git a/vcl/generic/app/geninst.cxx b/vcl/generic/app/geninst.cxx
index 22a3975..4f165e8 100644
--- a/vcl/generic/app/geninst.cxx
+++ b/vcl/generic/app/geninst.cxx
@@ -116,7 +116,10 @@ bool SalGenericInstance::CheckYieldMutex()
 
     SalYieldMutex* pYieldMutex = mpSalYieldMutex;
     if ( pYieldMutex->GetThreadId() != osl::Thread::getCurrentIdentifier() )
+    {
+        SAL_WARN_IF( pYieldMutex->GetThreadId() != osl::Thread::getCurrentIdentifier(), "sw", "CheckYieldMutex: " << pYieldMutex->GetThreadId() << "!=" << osl::Thread::getCurrentIdentifier() );
         bRet = false;
+    }
 
     return bRet;
 }


More information about the Libreoffice-commits mailing list