cURL / Mailing Lists / curl-library / Single Mail


Re: curl_easy_init() failed within thread excution

From: Theodore H. Smith <>
Date: Sat, 1 Nov 2008 21:00:36 +0000

On 1 Nov 2008, at 19:53, Dan Fandrich wrote:

> 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.

Whoops. Thanks for the correction.
Received on 2008-11-01