cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl and multithreading

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Dec 2005 15:04:03 +0100 (CET)

On Thu, 22 Dec 2005, Dominik Raddatz wrote:

> using only curl_easy_init, without calling curl_global_init first, is not
> thread safe. when curl_easy_init is called twice concurrently, it seems that
> both functions call curl_global_init, which makes the program crash or
> getting into a deadlock or behave strange in some other way.

Hm. Ok, I read you and I will of course add a note about this in the
appropriate documentation, but do you know what particular thing that makes
two simultaneous calls cause problems?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-12-22