diff options
| author | Todd Stinson <stinson@lindenlab.com> | 2012-01-03 10:38:06 -0800 |
|---|---|---|
| committer | Todd Stinson <stinson@lindenlab.com> | 2012-01-03 10:38:06 -0800 |
| commit | 3fd7752f1289f67db93e76833cc9804d057bc3c8 (patch) | |
| tree | 4fe65b7a3c80b065aa19e4904ea8e0d0d0e56940 /indra/llcommon/llthread.h | |
| parent | d1e79837d1b07cec0297a20e3cb63a47b136d844 (diff) | |
| parent | 570d562f5871f40bd7f8c683db5316ffd0133335 (diff) | |
Pull and merge from https://bitbucket.org/lindenlab/viewer-development.
Diffstat (limited to 'indra/llcommon/llthread.h')
| -rw-r--r-- | indra/llcommon/llthread.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h index 40291a2569..f0e0de6173 100644 --- a/indra/llcommon/llthread.h +++ b/indra/llcommon/llthread.h @@ -187,11 +187,14 @@ public: LLMutexLock(LLMutex* mutex) { mMutex = mutex; - mMutex->lock(); + + if(mMutex) + mMutex->lock(); } ~LLMutexLock() { - mMutex->unlock(); + if(mMutex) + mMutex->unlock(); } private: LLMutex* mMutex; |
