summaryrefslogtreecommitdiff
path: root/vcl/generic/app
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2011-11-01 19:34:00 +0100
committerMichael Stahl <mstahl@redhat.com>2011-11-01 19:34:00 +0100
commitd33e8d9bfecb7602b65b10d628c807e1ca2dccc2 (patch)
treed555d04de3fece3ed3c2d1157efb0a68be7186e3 /vcl/generic/app
parent7edb1da8c566c8c17b6bf9dd4f88101c14a07df8 (diff)
SalYieldMutex::release(): add assertion
Diffstat (limited to 'vcl/generic/app')
-rw-r--r--vcl/generic/app/geninst.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/generic/app/geninst.cxx b/vcl/generic/app/geninst.cxx
index 24f49675778f..f958ea6450f1 100644
--- a/vcl/generic/app/geninst.cxx
+++ b/vcl/generic/app/geninst.cxx
@@ -65,6 +65,7 @@ void SalYieldMutex::acquire()
void SalYieldMutex::release()
{
+ OSL_ENSURE(mnCount > 0, "SalYieldMutex::release() called with zero count");
if ( mnThreadId == osl::Thread::getCurrentIdentifier() )
{
if ( mnCount == 1 )