lua-users home
lua-l archive

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



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