cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: does curl_multi handle can be accessed from 2 threads?

From: Tom Jerry <catod6_at_gmail.com>
Date: Fri, 1 Sep 2006 22:47:02 +0200

So will it help if I lock the multi handle before accessing it on both
threads?
Is there any other way of writing the service I want?

On 9/1/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Fri, 1 Sep 2006, Tom Jerry wrote:
>
> > The question is:
> > can I use
> > curl_multi_add_handle(multi_handle, http_handle);
> > On this thread for adding new requests to process?
> > Is it thread safe?
>
> It is thread-safe, but you can only use the single multi handle in one
> thread
> at a time, not simultanouesly.
Received on 2006-09-01