cURL / Mailing Lists / curl-library / Single Mail


Re: Thread safety

From: Daniel Stenberg <>
Date: Fri, 15 Jun 2012 12:38:15 +0200 (CEST)

On Thu, 14 Jun 2012, Konstantin Miller wrote:

> Do you mean that although an explicit call to curl_global_init is not thread
> safe, an implicit call from, e.g., curl_easy_init is still thread safe? So
> that in a multi-threaded process I would not want to explicitely call
> curl_global_init but rather would call curl_easy_init and rely on the
> implicit initialization?


I mean you should call curl_global_init() in the beginning of your
application's life time - as documented, knowing that it isn't thread-safe.
Then you call curl_easy_init() in your threads as that function is

List admin:
Received on 2012-06-15