From 050dad0ce35207a4ac1562175e853590ad9b7681 Mon Sep 17 00:00:00 2001 From: Steven Bennetts Date: Wed, 7 Nov 2007 22:55:27 +0000 Subject: merge svn+ssh://steve@svn/svn/linden/branches/viewer-cleanup-3 -r 73026:73079 --- indra/llmessage/llcurl.cpp | 5 +++++ indra/llmessage/llcurl.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'indra/llmessage') 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 -- cgit v1.2.3