cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Mysterious random crash demystified.

From: Gisle Vanem <giva_at_bgnett.no>
Date: Tue, 12 Oct 2004 14:27:56 +0200

"Traian Nicolescu" wrote:

> Well, I typically use QueueUserAPC() for such purposes. Instead of
> directly running the callback, it attaches a request to run the callback
> to the thread's queue. When the thread enters an alertable state, the
> asynchronous callback we attached is automatically run. Alertable states
> are entered through WaitForSingleObjectEx() calls with the alertable flag
> set to true. The drawback to this approach, for libcurl at least, is that
> it would no longer run on NT 3.x systems, since they don't have
> QueueUserAPC().

I feel it's safe to exclude or program around NT 3.x systems. But man! Does
it need to be so complex? I've never used APC calls before, so can we expect
a patch from you?

--gv
Received on 2004-10-12