cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl share interface

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 28 Jul 2005 23:35:35 +0200 (CEST)

On Wed, 27 Jul 2005, Jason Pump wrote:

> I want to use the curl_share interface to share cookies and dns between
> multiple curl_easy handles. In the documentation it states that you must
> provide mutex callbacks if you are using the curl_share interface in a
> multithreaded environment. In my application I am not using any threading,
> but do have multiple curl_easy handles active at once. Do I have to
> implement the callback in this situation or does libcurl deal that ok?

No, the locking/mutex callbacks are only necessary if you use the
same share from several threads at once.

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