cURL / Mailing Lists / curl-library / Single Mail


Re: Thread safety

From: Daniel Stenberg <>
Date: Mon, 11 Jun 2012 18:55:54 +0200 (CEST)

On Mon, 11 Jun 2012, Konstantin Miller wrote:

> the libcurl tutorial states that "libcurl is completely thread safe, except
> for two issues: signals and SSL/TLS handlers". On the other hand, the
> description of curl_global_init states: "This function is not thread safe.
> You must not call it when any other thread in the program (i.e. a thread
> sharing the same memory) is running. This doesn't just mean no other thread
> that is using libcurl."
> What is right?

libcurl is completely thread safe, except for THREE issues:
  - signals
  - SSL/TLS handlers
  - curl_global_init

We should update the docs to specify this and nothing else!

List admin:
Received on 2012-06-11