[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Scheduling code idea
- From: PA <petite.abeille@...>
- Date: Thu, 13 Apr 2006 13:22:12 +0200
On 4/13/06, Javier Guerra <javier@guerrag.com> wrote:
> On Wednesday 12 April 2006 11:55 pm, Diego Nehab wrote:
> > Hi,
> >
> > > I've been looking for a way to run a Lua program that
> > > continuously executes functions at set intervals. Lua
> > > really needs a sleep(millisecs) function.
> >
> > <promotion>
> > LuaSocket provides one.
> > </promotion>
>
> so does HelperThreads; but i guess it's not what Simon had in mind, because it
> also provides a sample coroutine scheduler.
Alternatively, one could use something as simple as Luiz Henrique de
Figueiredo's lalarm:
"An alarm library for Lua based on signal and SIGALRM."
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/lalarm.tar.gz
--
Cheers