cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: easy interface in multithread environment

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 20 May 2005 19:42:00 +0200 (CEST)

On Fri, 20 May 2005, Roztkowski, Piotr wrote:

> I have application with multiple threads and I use easy interface. Is there
> any safe and good way to stop blocking transmission from other threads?

The correct way would be to somehow tell the libcurl thread so that the next
called callback returns an error.

> I found that during application shutdown curl_global_cleanup works fine but
> It crashes sometimes in Windows 98.

You mean if you call that while another thread is still using/running libcurl?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-05-20