1
1
镜像自地址 https://git.shadowkat.net/izaya/OC-PsychOS2.git 已同步 2024-09-28 15:12:45 -04:00

commented some scheduler functions

这个提交包含在:
XeonSquared 2019-12-16 14:30:27 +11:00
父节点 f80a58ce1d
当前提交 b370a90618

查看文件

@ -19,17 +19,17 @@ end
function os.kill(pid) -- removes process *pid* from the task list
tTasks[pid] = nil
end
function os.pid()
function os.pid() -- returns the current process' PID
return cPid
end
function os.tasks()
function os.tasks() -- returns a table of process IDs
local rt = {}
for k,v in pairs(tTasks) do
rt[#rt+1] = k
end
return rt
end
function os.taskInfo(pid)
function os.taskInfo(pid) -- returns info on process *pid* as a table with name and parent values
pid = pid or os.pid()
if not tTasks[pid] then return false end
return {name=tTasks[pid].n,parent=tTasks[pid].P}