cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi threads programming

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 4 Jan 2008 18:06:02 -0800

On Fri, Jan 04, 2008 at 05:53:26PM -0800, Jiang Xu wrote:
> Well, I thought all the functions in libcurl are
> thread safe. Doesn't it means that the data, handler,
> should be protected for thread safety?

They are--you can use libcurl from multiple threads without a problem
(subject to the documented restrictions) as long as you use a separate
libcurl handle from each thread. This is because libcurl itself has no
locking mechanism to prevent simultaneous access to a handle from more
than one thread.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-01-05