Skip to content
Snippets Groups Projects
Commit 5affaf26 authored by David Parks's avatar David Parks
Browse files

SH-2738 Don't lock unless we really need to

parent 58f9982f
No related branches found
No related tags found
No related merge requests found
...@@ -612,13 +612,7 @@ void LLCurl::Multi::setState(LLCurl::Multi::ePerformState state) ...@@ -612,13 +612,7 @@ void LLCurl::Multi::setState(LLCurl::Multi::ePerformState state)
LLCurl::Multi::ePerformState LLCurl::Multi::getState() LLCurl::Multi::ePerformState LLCurl::Multi::getState()
{ {
ePerformState state ; return mState;
lock() ;
state = mState ;
unlock() ;
return state ;
} }
bool LLCurl::Multi::isCompleted() bool LLCurl::Multi::isCompleted()
...@@ -636,14 +630,12 @@ bool LLCurl::Multi::waitToComplete() ...@@ -636,14 +630,12 @@ bool LLCurl::Multi::waitToComplete()
bool completed ; bool completed ;
lock() ;
completed = (STATE_COMPLETED == mState) ; completed = (STATE_COMPLETED == mState) ;
if(!completed) if(!completed)
{ {
LLCurl::getCurlThread()->setPriority(mHandle, LLQueuedThread::PRIORITY_URGENT) ; LLCurl::getCurlThread()->setPriority(mHandle, LLQueuedThread::PRIORITY_URGENT) ;
} }
unlock() ;
return completed; return completed;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment