summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-12-19 16:55:21 -0600
committerDave Parks <davep@lindenlab.com>2011-12-19 16:55:21 -0600
commit43e3603cd763f5f501c8c5dc008d8a00d0744c53 (patch)
tree928d53123d06de5fb8f113f25629976e6f7047a5 /indra
parentefec138037d7271effd89536d824bec270985909 (diff)
SH-2738 Don't lock unless we really need to
Diffstat (limited to 'indra')
-rw-r--r--indra/llmessage/llcurl.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/indra/llmessage/llcurl.cpp b/indra/llmessage/llcurl.cpp
index d86bf7a0a1..988c12d6fb 100644
--- a/indra/llmessage/llcurl.cpp
+++ b/indra/llmessage/llcurl.cpp
@@ -612,13 +612,7 @@ void LLCurl::Multi::setState(LLCurl::Multi::ePerformState state)
LLCurl::Multi::ePerformState LLCurl::Multi::getState()
{
- ePerformState state ;
-
- lock() ;
- state = mState ;
- unlock() ;
-
- return state ;
+ return mState;
}
bool LLCurl::Multi::isCompleted()
@@ -636,14 +630,12 @@ bool LLCurl::Multi::waitToComplete()
bool completed ;
- lock() ;
completed = (STATE_COMPLETED == mState) ;
if(!completed)
{
LLCurl::getCurlThread()->setPriority(mHandle, LLQueuedThread::PRIORITY_URGENT) ;
}
- unlock() ;
-
+
return completed;
}