SH-2183 Only apply multi-threaded curl on the main thread.

meow-7.2.2
Dave Parks 2011-08-02 12:23:50 -05:00
parent fbd5bd7adc
commit aa0e35142a
2 changed files with 4 additions and 2 deletions

View File

@ -85,7 +85,8 @@ S32 gCurlMultiCount = 0;
std::vector<LLMutex*> LLCurl::sSSLMutex;
std::string LLCurl::sCAPath;
std::string LLCurl::sCAFile;
bool LLCurl::sMultiThreaded = false;
bool ll_thread_local LLCurl::sMultiThreaded = false;
void check_curl_code(CURLcode code)

View File

@ -41,6 +41,7 @@
#include "llbuffer.h"
#include "lliopipe.h"
#include "llsd.h"
#include "llthread.h"
class LLMutex;
@ -55,7 +56,7 @@ public:
class Easy;
class Multi;
static bool sMultiThreaded;
static bool ll_thread_local sMultiThreaded;
struct TransferInfo
{