Tempfix for curl locking mutexes for too long

This commit is contained in:
Shyotl
2011-08-09 20:57:16 -05:00
parent bff63ac682
commit c918384805

View File

@@ -771,6 +771,8 @@ void LLCurl::Multi::run()
void LLCurl::Multi::doPerform()
{
S32 q = 0;
if (mThreaded)
mSignal->unlock();
for (S32 call_count = 0;
call_count < MULTI_PERFORM_CALL_REPEAT;
call_count += 1)
@@ -783,6 +785,8 @@ void LLCurl::Multi::doPerform()
}
}
if (mThreaded)
mSignal->lock();
mQueued = q;
mPerformState = PERFORM_STATE_COMPLETED;
}