2009/2/12 Matt Craighead <[email protected]>:
> My assumption is that all the C modules shipping with Python would have to
> support the "with timeout" feature.
>
> At least on Windows Vista and beyond, this wouldn't be so hard -- a call to
> CancelSynchronousIo plus a per-thread timeout object and change *WaitFor*
> calls to wait on that timeout object (change WaitForSingleObject to
> WaitForMultipleObjects as needed).  For OS's before Vista, this is
> speculation, but I would guess that CancelSynchronousIo could be implemented
> on top of ntdll.dll APIs.  I'm not enough of a Unix expert to say what would
> be involved on various Unix systems.

In the main UNIX does not have equivalent asynchronous APIs. There are
some for various stuff, but not as broad a range as Windows. Would
suspect that various target platforms for Python wouldn't even have
them, as think they are more likely an optional extension of POSIX and
not mandatory. Could be wrong there. Thus may be hard to mandate it as
a requirement in Python core.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to