| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: [SAD TRUTH] does curl_multi handle can be accessed from 2 threads?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Sep 2006 16:34:00 +0200 (CEST)
On Tue, 5 Sep 2006, Christian Grade wrote:
> the truth is: the multi-interface isn't designed in way that it *would be
The multi interface is thread-safe, but only from one thread at a time. I've
> If one puts locks for the multi-interface *outside* the interface instead of
I don't understand what you're saying. If you call a function in a thread,
> whereas I claim it should be able to potentially permanently download
That's indeed possible with the multi interface. And it is being done by
> Locks would have to be incorporated *within* the multi-interface, *within*
If we would want to allow multiple threads to use the same multi handle, yes.
> You can't lock up the multi-interface wrapping it. It's crazy because you
Sorry, I don't understand this point.
> Yet, there's only one shaky data-structure for handling file transfers
"one shaky data-structure" ?
> and there's no possibility of differentiation (data-structure-wise) between
What?
> Having a look in the code of "multi.c", there's a funny remark at status
I don't know what "funny remark" you're referring to, nor do I understand what
> So you can't just even adapt "multi.c" to fit your needs,
Many people find that it fit their needs. Others think otherwise. You're free
Also, you could present your ideas and suggestion on how it would work
> putting in some OMP code or other; no, you have to practically rewrite
I strongly disagree. On the other hand I don't understand most of your
> Short: If you wrap up the multi-interface for multi-threading purposes, you
So why would you "wrap up the multi-interface" like that in the first place?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-09-05 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info