[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ANN: sleep() patch for Lua 4.0
- From: Steve Dekorte <steve@...>
- Date: Mon, 10 Dec 2001 14:36:36 -0800
This is great. Is there any way to execute n number of instructions
before going to sleep? Is there a hook that get's called when sleep is
called?
I'm interested in playing around with actor-based programming techniques
in Lua where every object has it's own "thread" of execution. Real
threads would be much to heavy, but emulating threads by putting an
object to sleep and switching to the next active object might work.
Steve