diff options
author | Merov Linden <merov@lindenlab.com> | 2013-10-04 11:27:59 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-10-04 11:27:59 -0700 |
commit | 98a89748789034a53f129e19d06649d79b384c52 (patch) | |
tree | 39a1aefb35402db02c8791bc3e5735c36116f426 /indra/llcommon/llthread.cpp | |
parent | 796be733b374beb5660ee2713fc28c4e69331cbd (diff) | |
parent | 1e32b9dd33fb9e2f0d9a7935a3696b423a191354 (diff) |
Pull merge from viewer-fbc
Diffstat (limited to 'indra/llcommon/llthread.cpp')
-rwxr-xr-x | indra/llcommon/llthread.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/indra/llcommon/llthread.cpp b/indra/llcommon/llthread.cpp index 1d56a52c32..60adeeaeb7 100755 --- a/indra/llcommon/llthread.cpp +++ b/indra/llcommon/llthread.cpp @@ -67,7 +67,8 @@ LL_COMMON_API void assert_main_thread() static U32 s_thread_id = LLThread::currentID(); if (LLThread::currentID() != s_thread_id) { - llerrs << "Illegal execution outside main thread." << llendl; + llwarns << "Illegal execution from thread id " << (S32) LLThread::currentID() + << " outside main thread " << (S32) s_thread_id << llendl; } } @@ -495,15 +496,7 @@ LLThreadSafeRefCount::LLThreadSafeRefCount() : LLThreadSafeRefCount::LLThreadSafeRefCount(const LLThreadSafeRefCount& src) { - if (sMutex) - { - sMutex->lock(); - } mRef = 0; - if (sMutex) - { - sMutex->unlock(); - } } LLThreadSafeRefCount::~LLThreadSafeRefCount() |