[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ANN: Lua OS 0.4
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 18 Aug 2011 11:18:43 +0200
On Thu, Aug 18, 2011 at 10:48 AM, Gaspard Bucher <gaspard@teti.ch> 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
concurrency.
steve d.