summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorLeslie Linden <leslie@lindenlab.com>2012-01-04 15:42:30 -0800
committerLeslie Linden <leslie@lindenlab.com>2012-01-04 15:42:30 -0800
commit6fed3bed60c2b721ff26c319a86cd5f26afe084f (patch)
tree09aa24e713feaf4000b4ccaf84824ded94135ecc /indra/llcommon
parent1c4474f8945316118870d7d8389d6bfb619ad239 (diff)
parent570d562f5871f40bd7f8c683db5316ffd0133335 (diff)
Merge from viewer-development
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llsys.cpp1
-rw-r--r--indra/llcommon/llthread.h7
2 files changed, 6 insertions, 2 deletions
diff --git a/indra/llcommon/llsys.cpp b/indra/llcommon/llsys.cpp
index d781687175..19075afa68 100644
--- a/indra/llcommon/llsys.cpp
+++ b/indra/llcommon/llsys.cpp
@@ -608,6 +608,7 @@ LLCPUInfo::LLCPUInfo()
out << " (" << mCPUMHz << " MHz)";
}
mCPUString = out.str();
+ LLStringUtil::trim(mCPUString);
}
bool LLCPUInfo::hasAltivec() const
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;