From b370a906182be666a769a1f73b6e199b663810c4 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 16 Dec 2019 14:30:27 +1100 Subject: [PATCH] commented some scheduler functions --- module/sched.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/sched.lua b/module/sched.lua index 85eeaf7..10f16ce 100644 --- a/module/sched.lua +++ b/module/sched.lua @@ -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}