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: <>
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 (
>HTHost.c., etc.) Are the functions in libwww re-entrant and thread safe?
>happens if two threads are trying to manipulate the same host object's
>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 Frystyk Nielsen,
World Wide Web Consortium
Received on Monday, 23 March 1998 11:24:03 UTC

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