[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua and c interrupts (with lua callbacks)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 27 Oct 2005 05:40:39 -0200
> I'm wondering if I'm abusing the lua environment with the way I'm forwarding
> the c interrupts from the hardware to lua, if that may cause problems.
Probably. Calling Lua from a hardware interrupt in C when Lua is running
is probably dangerous. See lua.c for a way to treat C signals, which you
may adapt to your interrupts.