cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Is this example correct?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 14 Jul 2003 10:29:41 +0200 (CEST)

On Thu, 10 Jul 2003, Wei Weng wrote:

> I am looking at the multithread.c in docs/examples from curl-7.10.5 source.
> It didn't do a curl_global_init() in the main function, but only did
> seperate curl_easy_init in each thread. Is this way correct?

It _should_ use curl_global_init(), but it (still) works fine without doing
so. If curl_global_init() hasn't been called when curl_easy_perform() is
called the first time, it is done automaticly by libcurl with a default
option.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
Received on 2003-07-14