[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Timers and Futures in Lua?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 31 Jan 2004 15:31:31 -0200
>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