[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Coroutines and blocking IO
- From: Doug Currie <doug.currie@...>
- Date: Thu, 26 Jan 2006 18:31:02 -0500
Thursday, January 26, 2006, 5:47:11 PM, Ben Sunshine-Hill wrote:
> On 1/26/06, Jon Smirl <email@example.com> wrote:
>> I'm not a Windows programmer but don't you use IO completion ports on
>> windows instead of select?
> IOCP's an advanced technique for high-performance server applications.
> Winsock looks and acts almost exactly like UNIX netsockets.
I wrote Lua 5.1 glue to IOCP based I/O on WinXP about a year ago. It
has received little use. If anyone wants to volunteer to polish this
up, exercise it, and publish it, I'd be happy to turn it over. It's
about 1200 lines of C code, 100 lines of Lua, and a Makefile for
As another poster pointed out, there should be only one "poll" call in
the system. So it is difficult to package something like this as a
library; it should be "built in" or provided as a piece of
infrastructure; this is what has prevented me from publishing it as is.
Top level functions make EIO_FDs:
One poll call:
EIO_FD instance methods: