add os.getTimeout() function to ask how long the scheduler waits between running processes
This commit is contained in:
parent
4e64a55169
commit
87596c8834
@ -58,6 +58,9 @@ function os.getenv(k) -- gets a process' *k* environment variable
|
|||||||
return tTasks[cPid].e[k]
|
return tTasks[cPid].e[k]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
function os.getTimeout()
|
||||||
|
return nTimeout
|
||||||
|
end
|
||||||
function os.setTimeout(n)
|
function os.setTimeout(n)
|
||||||
if type(n) == "number" and n >= 0 then
|
if type(n) == "number" and n >= 0 then
|
||||||
nTimeout = n
|
nTimeout = n
|
||||||
|
Loading…
Reference in New Issue
Block a user