lua-users home
lua-l archive

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

On 13/10/2010 20.09, Henning Diedrich wrote:
I tried the following, with sockets being the best so far but it
appeared to hang sometimes when running in the background.

You could put a very short sleep inside Gabriel's timed loop. Even if the sleep wouldn't be interruptible, the loop would. (it'd only make sense for relatively long sleep times because of sleep time granularity)