curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: Question about thread safety of shared interface handle

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 5 Sep 2024 23:25:34 +0200 (CEST)

On Thu, 5 Sep 2024, Dmitry Karpov via curl-library wrote:

> So, I am wondering, if different easy handles running in different threads
> (and using different multi handles) may use the same shared interface handle
> with a thread-safe locking function?
>
> If yes, then what the " It is not supported to share ... between multiple concurrent threads" warnings means?
> If not, then what is the purpose of the locking function then?

The locking functions were implemented to make shares possible to use across
threads, but as the documentation states they should not because the
implementation unfortunately is just not complete enough for that.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-09-05