summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-12-09 12:23:04 -0600
committerDave Parks <davep@lindenlab.com>2011-12-09 12:23:04 -0600
commit50a57ba9fec0435a990338398d5c4f23c5cc91f0 (patch)
tree6277c0dce118af65dd5444c77f13493b39b0f135 /indra/llcommon
parent95bc798693f77460bda0c20df3e1c389d5c762b8 (diff)
Backed out changeset fafd857891b1
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llthread.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h
index b0a1c9e12b..40291a2569 100644
--- a/indra/llcommon/llthread.h
+++ b/indra/llcommon/llthread.h
@@ -187,18 +187,11 @@ public:
LLMutexLock(LLMutex* mutex)
{
mMutex = mutex;
-
- if(mMutex)
- {
- mMutex->lock();
- }
+ mMutex->lock();
}
~LLMutexLock()
{
- if(mMutex)
- {
- mMutex->unlock();
- }
+ mMutex->unlock();
}
private:
LLMutex* mMutex;