cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Thread-safety and curl_global_init() on SDL OpenGL context.

From: Michael Menegakis <arxeio_at_gmail.com>
Date: Mon, 6 Dec 2010 11:24:11 +0200

On Mon, Dec 6, 2010 at 9:54 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Sun, 5 Dec 2010, Michael Menegakis wrote:
>
>> Is there a chance that curl_global_init() has to be called _before_ an
>> OpenGL context creation of SDL?
> I don't understand your question really.

"This function is not thread safe. You must not call it when any other
thread in the program (i.e. a thread sharing the same memory) is
running. This doesn't just mean no other thread that is using libcurl.
Because curl_global_init() calls functions of other libraries that are
similarly thread unsafe, it could conflict with any other thread that
uses these other libraries. " --
http://curl.haxx.se/libcurl/c/curl_global_init.html

The source of my worries.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-06