cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Basic usage - easy vs multi in multithreaded application

From: Juan Manuel Lopez Baio <jmbaio_at_gmail.com>
Date: Fri, 15 Sep 2006 14:23:45 -0300

> To the best of my understanding you have it right. You can use the easy
> API in a threaded environment (one handle per thread) or the multi in a
> single-threaded environment. There's nothing wrong with either way, it's
> a matter of personal preference.
>
> MB
>

Great! So, I started to throw some code aiming for the easy-threaded
option, and decided to make just one call to curl_global_init and
curl_global_cleanup from the main thread, so as to not do it every
time I create and execute a transfer object; since those functions
don't... <redundancy> handle handles </redundancy>, there wouldn't be
any problem with that, right?
I ask to prevent those psychically exhausting bughunts later on... ;)
Thanks for the help!

Juan
Received on 2006-09-15