Browse Source

add os.getTimeout() function to ask how long the scheduler waits between running processes

master
Izaya 3 years ago
parent
commit
87596c8834
  1. 3
      module/sched.lua

3
module/sched.lua

@ -58,6 +58,9 @@ function os.getenv(k) -- gets a process' *k* environment variable
return tTasks[cPid].e[k]
end
end
function os.getTimeout()
return nTimeout
end
function os.setTimeout(n)
if type(n) == "number" and n >= 0 then
nTimeout = n

Loading…
Cancel
Save