diff options
Diffstat (limited to 'sal/osl/unx/mutex.cxx')
-rw-r--r-- | sal/osl/unx/mutex.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/osl/unx/mutex.cxx b/sal/osl/unx/mutex.cxx index e3786e43a1f4..12e16255ba5b 100644 --- a/sal/osl/unx/mutex.cxx +++ b/sal/osl/unx/mutex.cxx @@ -84,7 +84,7 @@ void SAL_CALL osl_destroyMutex(oslMutex pMutex) } } -#ifdef __COVERITY__ +#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 extern void __coverity_recursive_lock_acquire__(void*); extern void __coverity_recursive_lock_release__(void*); extern void __coverity_assert_locked__(void*); @@ -102,7 +102,7 @@ sal_Bool SAL_CALL osl_acquireMutex(oslMutex pMutex) SAL_WARN("sal.osl.mutex", "pthread_mutex_lock failed: " << UnixErrnoString(nRet)); return false; } -#ifdef __COVERITY__ +#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 __coverity_recursive_lock_acquire__(pMutex); #endif return true; @@ -123,7 +123,7 @@ sal_Bool SAL_CALL osl_tryToAcquireMutex(oslMutex pMutex) int nRet = pthread_mutex_trylock(&(pMutex->mutex)); if ( nRet == 0 ) { -#ifdef __COVERITY__ +#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 __coverity_recursive_lock_acquire__(pMutex); #endif result = true; @@ -135,7 +135,7 @@ sal_Bool SAL_CALL osl_tryToAcquireMutex(oslMutex pMutex) sal_Bool SAL_CALL osl_releaseMutex(oslMutex pMutex) { -#ifdef __COVERITY__ +#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 __coverity_assert_locked__(pMutex); #endif SAL_WARN_IF(!pMutex, "sal.osl.mutex", "null pMutex"); @@ -149,7 +149,7 @@ sal_Bool SAL_CALL osl_releaseMutex(oslMutex pMutex) return false; } -#ifdef __COVERITY__ +#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023 __coverity_recursive_lock_release__(pMutex); #endif return true; |