lua-users home
lua-l archive

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


Perfect. Thanks for this Mike.

Mike Pall  wrote:
- Setup a POSIX timer or a Windows thread which waits on the
  timeout. Then in the timeout handler set the lua hook with a
  count of 1. This is safe, even from a signal handler or a
  different thread. It's also the fastest solution because the
  hook is not active during regular execution.