cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl version + multi threading

From: Girish Dharmapurikar <girishd_at_dh.cit.alcatel.fr>
Date: Fri, 05 Apr 2002 11:12:51 +0200

I find following Note at http://curl.haxx.se/docs/install.html . This says "no
thread support" in a case of linux. that shakes me. why should there be any OS
not supporting threaing? Should it be the same with Solaris 5.7 ?

=========================
OpenLDAP
              You'll find OpenLDAP information at:

              http://www.openldap.org

              You need to install it with shared libraries, which is enabled
when running the ldap configure script with "--enable-shared". With my linux
2.0.36 kernel I also had to disable using threads (with --without-threads),
because the configure script couldn't figure out my system.
=========================

Daniel Stenberg a écrit :
>
> On Tue, 26 Mar 2002, Girish Dharmapurikar wrote:
>
> > One more question regarding thread safe behavour in case of permanent
> > connection. If I want to use the same curl_handle for different threads in
> > my program, apparently, it seems that I have to have some queue mechanism
> > implemented in my program for using that curl_handle. i.e I can't use this
> > curl_handle from many programs at a time. How can we call this behaviour of
> > doing one thing at a time as a thread safe?
>
> Because if you use one handle in each thread, all threads can run and perform
> independently of the others. That is thread safe behavior.
>
> If you feel a need to share the same handle in multiple threads, then please
> join the effort to bring mutexes and thread-sharable data to libcurl. Noel
> Byron is doing some serious work in that area, as can be read in the mails
> recently posted, that are archived from here:
>
> http://curl.haxx.se/mail/lib-2002-03/0102.html
>
> --
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-05