curl-library
Re: Multi-threading
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 28 Sep 2011 19:51:22 +0200 (CEST)
Date: Wed, 28 Sep 2011 19:51:22 +0200 (CEST)
On Wed, 28 Sep 2011, Julien wrote:
>> Never share libcurl handles between multiple threads. You should only use
>> one handle in one single thread at any given time.
>
> This sentence is not totally clear to me. Does it mean that a handle
> is bound to a thread for its whole lifetime or only that at a given
> time it must not be used by several threads?
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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-28