summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorTofu Buzzard <no-email>2011-02-09 19:23:19 -0800
committerTofu Buzzard <no-email>2011-02-09 19:23:19 -0800
commitc213618b53d3a18c12afe21d4327d7d86095feaa (patch)
treef7dfe30ffeb5c5ed494009421746acf903a12adf /indra/llcommon
parent8c718d51873cbbe3e00042329ac8c7c6396ae9c2 (diff)
parent952c3eaaa8c78d00ef62932d46af1d8fa565e7b2 (diff)
merge
Diffstat (limited to 'indra/llcommon')
-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);
}