W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1998

Re: is libwww thread safe?

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Mon, 23 Mar 1998 11:23:40 -0500
Message-Id: <3.0.5.32.19980323112340.02f31970@localhost>
To: kvedati@Rational.Com, www-lib@w3.org
At 11:04 3/21/98 -0500, Krishna Vedati wrote:
>
>There are so many static variable strewn around many files in libwww (
HTNet.c
>HTHost.c., etc.) Are the functions in libwww re-entrant and thread safe?
What
>happens if two threads are trying to manipulate the same host object's
request 
>pipeline?  did anybody use libwww in a multi-threaded application? 

libwww uses its own funny threads based on non-blocking sockets. It isn't
thread safe although most of the functions are reentrant.

It would be a very nice task to integrate a locking model into libwww like
for example what comes with pthreads. It's really only in the core classes
HTHost, HTDNS, etc. that it is needed.

Anyone up for the task?

Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Monday, 23 March 1998 11:24:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:27 GMT