cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi interface on a multi threaded application

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 14 Feb 2011 16:30:39 +0100 (CET)

On Mon, 14 Feb 2011, Yuval wrote:

> Web-based Email # http://address.yahoo.com/Computers & Technology #

Man, that's a new low in crappy web based email marketing. You REALLY should
consider getting a new provider.

> I would like to implement Event Loop having a single thread doing select,
> while multiple threads pushing new requests.

Why?

> can I use curl_multi_add_handle on multiple threads while the Event Loop
> thread is looping over:
>
> 1. curl_multi_fdset
> 2. curl_multi_perform
> 3. curl_multi_info_read
>
> Is there any example of such implementation ?

No, that would cause the same multi handle to be used by more than one thread
at once and that's a nono.

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