cURL / Mailing Lists / curl-library / Single Mail

curl-library

SDL multithreading and cURL deadlock problem

From: Izmael nabudon <nizmael_at_gmail.com>
Date: Sun, 26 Aug 2012 09:23:33 +0200

Hello,

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%

is there some magic i forgot to cast before calling curl_easy_perform?

curl 7.27.0 without ssl, ssh2 and zlib, static link, compiled using gcc

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-26