summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/conditn.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/unx/conditn.cxx b/sal/osl/unx/conditn.cxx
index f84ae280d8dc..90d70e1e5b5c 100644
--- a/sal/osl/unx/conditn.cxx
+++ b/sal/osl/unx/conditn.cxx
@@ -152,6 +152,8 @@ sal_Bool SAL_CALL osl_setCondition(oslCondition Condition)
"sal.osl",
"pthread_cond_broadcast failed, errno " << nRet << ", \""
<< strerror(nRet) << '"');
+ // try to unlock the mutex
+ pthread_mutex_unlock(&pCond->m_Lock);
return sal_False;
}