1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-22 03:54:20 -05:00

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

This commit is contained in:
XeonSquared 2020-06-11 12:46:00 +10:00
parent 4e64a55169
commit 87596c8834

View File

@ -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