cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_global_init

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 14 Feb 2008 22:00:56 +0100 (CET)

On Thu, 14 Feb 2008, McGarvey, Kevin wrote:

> The documentation says that curl_global_init must be called with no other
> threads running. Please clarify why this is necessary. Is this restriction
> only relevant on certain operating systems? Specifically does it apply to
> Linux and Open Solaris?

It is relevant on all operating systems. Different systems, architectures and
specific setups will of course vary exactly what the worst implications might
be.

I think the main problems are the OpenSSL init functions and the global
variables/counters libcurl uses for this state.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-02-14