diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-27 20:49:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-28 11:11:56 +0000 |
commit | 4f743219e85e61f622a8dadc028c144010eecd4d (patch) | |
tree | 1892fc82482d5dbdefd849a4c01450823aa79495 /sal/osl | |
parent | 173ba4dedd16785506a635949fe6aef3424a3b64 (diff) |
cid#1521506 silence Thread deadlock
and
cid#1521510 Thread deadlock
annotation is getting a bit spamy
Change-Id: I3120562c0f7ca996f53d14965efe7af506be6d19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147935
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/process.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx index f75534fdc311..7d6936265c0b 100644 --- a/sal/osl/unx/process.cxx +++ b/sal/osl/unx/process.cxx @@ -329,6 +329,7 @@ static void ChildStatusProc(void *pData) else pChild->m_status = -1; + // coverity[lock_order : FALSE] - incorrect report of lock order error osl_setCondition(pChild->m_terminated); } @@ -731,8 +732,12 @@ oslProcess SAL_CALL osl_getProcess(oslProcessIdentifier Ident) pProcImpl->m_status = pChild->m_status; + // coverity[lock_order : FALSE] - incorrect report of lock order error if (osl_checkCondition(pChild->m_terminated)) + { + // coverity[lock_order : FALSE] - incorrect report of lock order error osl_setCondition(pProcImpl->m_terminated); + } } else pProcImpl->m_pnext = nullptr; |