curl-library
Re: download thread hung in poll()
From: Alex Loukissas <alex_at_maginatics.com>
Date: Fri, 4 Nov 2011 12:53:36 -0700
Date: Fri, 4 Nov 2011 12:53:36 -0700
> libcurl has no locking but then libcurl does nothing by itself that needs to
> get locked. You however said that your function that is called by multiple
> threads do:
>
> CURL* handle = get a handle from a pool of handles,
>
> If this pool isn't per-thread, you need to protect it, and hence I assumed a
> lock somewhere. It could be a bad assumption on my part.
This pool is not per-thread, it has a getHandle() and returnHandle()
method, both of which are guarded with a mutex.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-04