lua-users home
lua-l archive

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


>1. It must be possible to create timers (one-shot or
>repeating) that call Lua functions when the timers
>expire. There may be several timers running at
>different frequencies

You can start with my alarm library. See
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/

Multiple timers will have to be dispatched through a single timer handlerr.

The main technique used in my alarm library is setting up a Lua hook when
the alarm is triggered. This is also used for handling ^C interruptions
in lua.c.
--lhf