mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
this was supposed to be in that pr merge oops
This commit is contained in:
parent
f996b9414a
commit
d40937b467
@ -39,10 +39,15 @@ end
|
||||
|
||||
-- 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)
|
||||
-- EVENT_CONSUMER: this function consumes events
|
||||
function nop()
|
||||
sleep(0.05)
|
||||
psleep(0.05)
|
||||
end
|
||||
|
||||
-- WATCHDOG --
|
||||
|
Loading…
Reference in New Issue
Block a user