瀏覽代碼

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

master
XeonSquared 4 年之前
父節點
當前提交
87596c8834
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      module/sched.lua

+ 3
- 0
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…
取消
儲存