summaryrefslogtreecommitdiff
path: root/indra/llcommon/llthread.h
diff options
context:
space:
mode:
authorSteve Bennetts <steve@lindenlab.com>2009-11-23 17:49:01 -0800
committerSteve Bennetts <steve@lindenlab.com>2009-11-23 17:49:01 -0800
commitaec42e3fa2d8a1a4f0c07821821c114d72c339a7 (patch)
tree6317ab4db7bebd3974c77c0226a10cc4cb33f4be /indra/llcommon/llthread.h
parent7bfa11ed694f9fffa9d8983f3d60f740d630cfc2 (diff)
parentdb79b2d0920bff9bf4f36e8249c0a243581d4c44 (diff)
merge
Diffstat (limited to 'indra/llcommon/llthread.h')
-rw-r--r--indra/llcommon/llthread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h
index 932d96d940..d8aa90de2e 100644
--- a/indra/llcommon/llthread.h
+++ b/indra/llcommon/llthread.h
@@ -128,6 +128,8 @@ protected:
//============================================================================
+#define MUTEX_DEBUG (LL_DEBUG || LL_RELEASE_WITH_DEBUG_INFO)
+
class LL_COMMON_API LLMutex
{
public:
@@ -142,6 +144,9 @@ protected:
apr_thread_mutex_t *mAPRMutexp;
apr_pool_t *mAPRPoolp;
BOOL mIsLocalPool;
+#if MUTEX_DEBUG
+ std::map<U32, BOOL> mIsLocked;
+#endif
};
// Actually a condition/mutex pair (since each condition needs to be associated with a mutex).