cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multi-threading

From: Julien Royer <eldebaran_at_gmail.com>
Date: Fri, 30 Sep 2011 09:27:36 +0200

On 29 September 2011 21:12, Georg Lippitsch <georg.lippitsch_at_gmx.at> wrote:
> Am 29.09.2011, 08:16 Uhr, schrieb Daniel Stenberg <daniel_at_haxx.se>:
>
>> On Thu, 29 Sep 2011, Julien wrote:
>>
>>>> The latter. You can pass the handles around among threads, but you must
>>>> never use a single handle from more than one thread at any given time.
>>>
>>> Thank you (again) for your quick answer! I think that this point could be
>>> precised in the documentation.
>>
>> Specifically, what wording are you suggesting we add where?
>
> That was a question I also was not completely sure about until now. I think
> that the wording you used to answer Julien's questions explains it very
> well, and should be added into the documentation.

Yes, I think that the following sentence is quite misleading:

"The first basic rule is that you must never share a libcurl handle
(be it easy or multi or whatever) between multiple threads. Only use
one handle in one thread at a time. "

and could be replaced by Daniel's answer.

>
> Georg
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-30