Will check it out ! ty.

On Sun, Jul 1, 2012 at 1:09 PM, Peter Sylvester
<[email protected]>wrote:

> On 06/30/2012 03:47 PM, Usman Raza wrote:
>
>> Hello all, im using curl for chunked transfer in a separate thread, by
>> reading from a buffer, could anyone tell me how could i pause it, so i
>> could maybe switch to another thread (which will write to the buffer) and
>> then switch back to resume transfer? i did came across the
>> curl_easy_pause(CURL *handle , int bitmask ) function which could be used
>> with returning CURL_READFUNC_PAUSE from a callback, but im not sure how i
>> can use it to accomplish thread synchronization.Appreciate any help on
>> this.Thanks.
>>
> You might want to take a look into the multi interface. you might be able
> to avoid all thread logic.
> a loop with selects  calls to the necessary functions when your data or
> buffers are ready.
>
> Peter Sylvester
>
>
> ------------------------------**------------------------------**-------
> List admin: 
> http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette:  
> http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to