[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Lua and c interrupts (with lua callbacks)
From:       Kaos <kaos () explosive ! se>
Date:       2005-10-27 9:12:36
Message-ID: 43609A04.8060404 () explosive ! se
[Download RAW message or body]

Thank you, and Ben (who came with almost the exact same response) !

Exactly what I was looking for. Had missed that signals was trapped in lua.c
I take it that calling lua_sethook() in c is safe even when lua is executing
some function.

Luiz Henrique de Figueiredo wrote:
>>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.
> --lhf



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic