Re: Using 'regular' threads on win32.

Hi Lucas,

The answer is: it depends. :) Libwww is not MT-safe in any way. As long as you use libwww itself from just one dedicated thread it is ok. Libwww is capable of performing multiple transactions in a concurrent manner w/o launching multiple threads. To do that one of your threads has to enter the Libwww 'event loop' and that will take care of the rest. You can use as many other threads in your app as you want, as long as they don't call libwww APIs.

If you want to have multiple threads calling Libwww functions, you are out of luck. By default, that is. I guess it is possible to put mutexes around global variable accesses and things like that in Libwww, but I doubt it's worth the effort, since you will loose performance (and probably it's a big task anyway).

Hope this helps,

Attila

Received on Wednesday, 9 May 2001 10:32:15 UTC