summaryrefslogtreecommitdiff
path: root/indra/llmessage
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llmessage')
-rw-r--r--indra/llmessage/llcurl.cpp5
-rw-r--r--indra/llmessage/llcurl.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/indra/llmessage/llcurl.cpp b/indra/llmessage/llcurl.cpp
index 01976b12f1..9b5e6cd4e6 100644
--- a/indra/llmessage/llcurl.cpp
+++ b/indra/llmessage/llcurl.cpp
@@ -367,6 +367,11 @@ LLCurl::getByteRange(const std::string& url, S32 offset, S32 length, ResponderPt
mainMulti()->getByteRange(url, offset, length, responder);
}
+void LLCurl::initClass()
+{
+ curl_global_init(CURL_GLOBAL_ALL);
+}
+
void
LLCurl::process()
{
diff --git a/indra/llmessage/llcurl.h b/indra/llmessage/llcurl.h
index d21cdc4e47..53287c2988 100644
--- a/indra/llmessage/llcurl.h
+++ b/indra/llmessage/llcurl.h
@@ -130,8 +130,9 @@ public:
static void get(const std::string& url, ResponderPtr);
static void getByteRange(const std::string& url, S32 offset, S32 length, ResponderPtr responder);
+ static void initClass(); // *NOTE:Mani - not thread safe!
static void process();
- static void cleanup();
+ static void cleanup(); // *NOTE:Mani - not thread safe!
};
namespace boost