cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl multithreading

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Sep 2006 13:36:35 +0200 (CEST)

On Fri, 22 Sep 2006, Török Edvin wrote:

> However I don't understand why the suggested pthread_getspecific fix can't
> be used _if_ pthreads is available. 'pthread_getspecific' is part of POSIX
> Threads extension, and _if_ it is available, then you should add support for
> it.

Yeah, it seems logical. Although I of course will have to take your word for
it since I know very little about (p)threads in general.

I take it you have tested this approach and found it working nicely?

> What do you think of these changes below:

They seem pretty straight-forward. However:

o I want a configure switch that specificly can disable use of pthreads to
   make libcurl able to remain working as before for those who might depend on
   it or just prefer it.

o The function to check if the signal-based timeouts work would not be a new
   function but be part of curl_version_info() (the features bitmask)

o Please make it a nice diff -u patch!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-09-22