lua-users home
lua-l archive

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

On Thu, Aug 18, 2011 at 10:48 AM, Gaspard Bucher <> wrote:
> 2. it can cope with os callbacks that cannot transfer execution to another
> thread (OpenGL).

This is the model I followed with Winapi, where it's also important to
ensure that callbacks happen on the GUI thread. (This requires a
peculiarly Windows hack, using a message queue on a window to transfer
stuff to the GUI thread)

OK, the downside is that you can only do one thing at a time, but then
coroutines can be used on top of this to maintain the illusion of

steve d.