summaryrefslogtreecommitdiff
path: root/indra/llcommon/llthread.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-02-10 15:58:08 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-02-10 15:58:08 -0500
commit711d70bd4c2a69c5176759f8bcd2ab0b3e1d1715 (patch)
tree488e783c98321b8d3eb7e4c5ec7ca28f0cd5ea02 /indra/llcommon/llthread.cpp
parent49b8f8af026a627db47c9592fc92eccda790401e (diff)
parente3ed1565f8c6eeff5d87f862465038aa98576fa9 (diff)
merge
Diffstat (limited to 'indra/llcommon/llthread.cpp')
-rw-r--r--indra/llcommon/llthread.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llcommon/llthread.cpp b/indra/llcommon/llthread.cpp
index b4617c5453..d9400fb5b3 100644
--- a/indra/llcommon/llthread.cpp
+++ b/indra/llcommon/llthread.cpp
@@ -425,6 +425,11 @@ void LLCondition::wait()
if (!isLocked())
{ //mAPRMutexp MUST be locked before calling apr_thread_cond_wait
apr_thread_mutex_lock(mAPRMutexp);
+#if MUTEX_DEBUG
+ // avoid asserts on destruction in non-release builds
+ U32 id = LLThread::currentID();
+ mIsLocked[id] = TRUE;
+#endif
}
apr_thread_cond_wait(mAPRCondp, mAPRMutexp);
}