curl-library
Re: SDL multithreading and cURL deadlock problem
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 26 Aug 2012 19:01:25 +0200 (CEST)
Date: Sun, 26 Aug 2012 19:01:25 +0200 (CEST)
On Sun, 26 Aug 2012, Izmael nabudon wrote:
> im having problem with cURL and SDL threads, when i set
> CURLOPT_WRITEFUNCTION and in this callback set samaphore to wait
> SDL_SemWait(curlSem); (the main thread unlocks this semaphore) program gets
> into deadlock, the main thread stops responding and CPU usage moves to ~1%
Sorry that explanation lacks a lot of details. Why are you waiting for a
semaphore there and how is that related to libcurl at all?
What API are you using? Can you show us a full source code that repeats the
problem you see and tell us which libcurl version you're using?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-08-26