lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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
found at

  http://www.codeproject.com/threads/ucontext.asp

--
Kurt Jung