W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

[Moderator Action] RE: [Moderator Action] multithreading using libwww

From: Jens Meggers <jens.meggers@firepad.com>
Date: Wed, 16 Aug 2000 13:07:59 -0400 (EDT)
Message-ID: <DDF913B74F07D411B22500B0D0206D9F0D73E7@FIREPLUG>
To: "'TBharath'" <TBharath@responsenetworks.com>
Cc: "'www-lib@w3.org'" <www-lib@w3.org>

You need to have a separate thread for the event loop.
The threads that are starting the requests have to send a message to the
event loop thread in oder to process them. When finishing, the event
loop thread can post back the results to the former threads. This is
usually done in a terminating after filter.



-----Original Message-----
From: www-lib-request@w3.org [mailto:www-lib-request@w3.org]On Behalf Of
Sent: Tuesday, August 15, 2000 11:20 AM
To: www-lib@w3.org
Subject: [Moderator Action] multithreading using libwww

I'm trying to use libwww  download several pages from the web at the
same time.

The idea is to have several clients using libwww to
download pages.

To do this I am trying to do the following:
. In a thread, I create a request, and enter the event loop.

Now if an other client thread asks to get an other page, I would like to

have a way to interupt libwww, in order to be able to service a new

Is this the right way to do this?

How can I interupt the event loop? (For example, is there any idle
callback or maybe a timeout?)

Any quick help would be appreciated

Received on Thursday, 17 August 2000 03:16:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC