cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_init() failed within thread excution

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 1 Nov 2008 12:53:44 -0700

On Sat, Nov 01, 2008 at 07:22:53PM +0000, Theodore H. Smith wrote:
> You need to call curl_easy_init from within the same thread that owns the
> global curl thing. The global curl thing is created when you first use
> curl_easy_init.

As long as you call curl_global_init from the main thread before any other
threads have been created, all is well.

> I think that means you can only access curl from one thread.

You can only access any given easy handle from a single thread at a time,
but you can access multiple easy handles from multiple threads.

>>> Dan

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