this was supposed to be in that pr merge oops
This commit is contained in:
@@ -39,10 +39,15 @@ end
|
|||||||
|
|
||||||
-- PARALLELIZATION --
|
-- PARALLELIZATION --
|
||||||
|
|
||||||
|
-- protected sleep call so we still are in charge of catching termination
|
||||||
|
function psleep(t)
|
||||||
|
pcall(os.sleep, t)
|
||||||
|
end
|
||||||
|
|
||||||
-- no-op to provide a brief pause (and a yield)
|
-- no-op to provide a brief pause (and a yield)
|
||||||
-- EVENT_CONSUMER: this function consumes events
|
-- EVENT_CONSUMER: this function consumes events
|
||||||
function nop()
|
function nop()
|
||||||
sleep(0.05)
|
psleep(0.05)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- WATCHDOG --
|
-- WATCHDOG --
|
||||||
|
|||||||
Reference in New Issue
Block a user