cURL / Mailing Lists / curl-library / Single Mail


Re: SDL multithreading and cURL deadlock problem

From: Daniel Stenberg <>
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?

List admin:
Received on 2012-08-26