[Libreoffice-commits] core.git: 2 commits - sal/osl

Tor Lillqvist tml at collabora.com
Fri May 1 01:08:24 PDT 2015


 sal/osl/unx/mutex.cxx |   10 ----------
 1 file changed, 10 deletions(-)

New commits:
commit 5b8acf459e4a6728ea656e7abd5dfb08ad2ae345
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri May 1 11:02:17 2015 +0300

    Actually, let's just delete the now commented-out SAL_INFO lines
    
    (It was I who added them in the first place.)
    
    Next time somebody (falsely?) suspects a problem with mutex use and really
    needs tracing, it's trivial to add temporary SAL_DEBUGs.
    
    Change-Id: I3db02be777a728fbf4a1d1962f0ccfa16c630f15

diff --git a/sal/osl/unx/mutex.cxx b/sal/osl/unx/mutex.cxx
index a50cfa0..515a2ed 100644
--- a/sal/osl/unx/mutex.cxx
+++ b/sal/osl/unx/mutex.cxx
@@ -65,8 +65,6 @@ oslMutex SAL_CALL osl_createMutex()
 
     pthread_mutexattr_destroy(&aMutexAttr);
 
-//    SAL_INFO("sal.osl.mutex", "osl_createMutex(): " << pMutex);
-
     return pMutex;
 }
 
@@ -74,8 +72,6 @@ void SAL_CALL osl_destroyMutex(oslMutexImpl *pMutex)
 {
     SAL_WARN_IF(!pMutex, "sal.osl.mutex", "null pMutex");
 
-//    SAL_INFO("sal.osl.mutex", "osl_destroyMutex(" << pMutex << ")");
-
     if ( pMutex != 0 )
     {
         int nRet=0;
@@ -96,8 +92,6 @@ sal_Bool SAL_CALL osl_acquireMutex(oslMutexImpl *pMutex)
 {
     SAL_WARN_IF(!pMutex, "sal.osl.mutex", "null pMutex");
 
-//    SAL_INFO("sal.osl.mutex", "osl_acquireMutex(" << pMutex << ")");
-
     if ( pMutex != 0 )
     {
         int nRet=0;
@@ -129,8 +123,6 @@ sal_Bool SAL_CALL osl_tryToAcquireMutex(oslMutexImpl *pMutex)
             result = true;
     }
 
-//    SAL_INFO("sal.osl.mutex", "osl_tryToAcquireMutex(" << pMutex << "): " << (result ? "YES" : "NO"));
-
     return result;
 }
 
@@ -138,8 +130,6 @@ sal_Bool SAL_CALL osl_releaseMutex(oslMutexImpl *pMutex)
 {
     SAL_WARN_IF(!pMutex, "sal.osl.mutex", "null pMutex");
 
-//    SAL_INFO("sal.osl.mutex", "osl_releaseMutex(" << pMutex << ")");
-
     if ( pMutex )
     {
         int nRet=0;
commit 9a812c0177cfb7119181bc5afd6c7d935918485e
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri May 1 10:58:38 2015 +0300

    Let's disable these too then for consistency
    
    Change-Id: I17d17b1cad83a55f9a2c0db80e272c419529b45a

diff --git a/sal/osl/unx/mutex.cxx b/sal/osl/unx/mutex.cxx
index d822078..a50cfa0 100644
--- a/sal/osl/unx/mutex.cxx
+++ b/sal/osl/unx/mutex.cxx
@@ -65,7 +65,7 @@ oslMutex SAL_CALL osl_createMutex()
 
     pthread_mutexattr_destroy(&aMutexAttr);
 
-    SAL_INFO("sal.osl.mutex", "osl_createMutex(): " << pMutex);
+//    SAL_INFO("sal.osl.mutex", "osl_createMutex(): " << pMutex);
 
     return pMutex;
 }
@@ -74,7 +74,7 @@ void SAL_CALL osl_destroyMutex(oslMutexImpl *pMutex)
 {
     SAL_WARN_IF(!pMutex, "sal.osl.mutex", "null pMutex");
 
-    SAL_INFO("sal.osl.mutex", "osl_destroyMutex(" << pMutex << ")");
+//    SAL_INFO("sal.osl.mutex", "osl_destroyMutex(" << pMutex << ")");
 
     if ( pMutex != 0 )
     {


More information about the Libreoffice-commits mailing list