lua-users home
lua-l archive

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

>What parts, if any, of lua are safe to execute at interrupt time?  Such as
>in a I/O or audio completion OS routine?

If you mean, can you call Lua inside a signal handler, then the answer is 
that the safe way is to do like lua.c does: in the signal handler, just set a
special hook. When hook is be called, you can interact safely with Lua.

The same technique is used in my alarm library.