Re: Does the share interface work?
Date: Thu, 26 Feb 2004 12:24:26 +0100 (CET)
On Wed, 25 Feb 2004, Andy Serpa wrote:
> Ok, it appears it crashes because I did not set Lock & Unlock callbacks. I
> got the impression I didn't need to from this line in the share overview:
> "Since you can use this share from multiple threads, and libcurl has no
> internal thread synchronization, you must provide mutex callbacks if you're
> using this multi-threaded. You set lock and unlock functions with
> curl_share_setopt() too."
> My application is single-threaded, so I thought it wasn't necessary...
Aha. It certainly sounds like a bug, since I agree with you that those
callbacks shouldn't be mandatory.
Care to write a patch for this?
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not send mails to this email address. They won't reach me. ]]Received on 2004-02-26