[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Fiber based coroutines
- From: Kurt Jung <kurt-lua@...>
- Date: Sun, 7 Aug 2005 12:30:31 -0400
Wim Couwenberg wrote:
> I've polished my fiber library for Lua 5.0.2 a bit, added some basic
> documentation and put everything on my web site.
Very nice work, Wim!
Followers of this thread may also be interested in the GetThreadContext
and SetThreadContext functions in the Win32 API. These functions allow
an application to implement coroutines and are supported from Windows
95 onward. Presumably, fibers are built on these.
Panagiotis E. Hadjidoukas has written a small C library which
implements the basic Unix ucontext_t routines in Windows using these
functions. I've written a small proof-of-concept using it and Lua 5.0.2
and the results are encouraging. Hadjidoukas's code and summary can be