made process IDs static hopefully

This commit is contained in:
Izaya 2017-05-25 00:45:13 +00:00
parent 375b425911
commit 85dbe20f9f
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ while #tT > 0 do
if C.status(v[2])~="dead" then
C.resume(v[2],table.unpack(ev))
else
T.remove(tT,k)
tT[k] = nil
end
end
end

View File

@ -1,4 +1,4 @@
tT,p,cT,C,T={},1,1,coroutine,table
tT,p,cT,pC,C,T={},1,1,1,coroutine,table
function E()
if tT[cT] ~= nil then return tT[cT][3] end
end
@ -9,5 +9,6 @@ function h(...)
computer.pushSignal(...)
end
function s(n,f,e)
T.insert(tT,{n,C.create(f),(e or E() or {})})
tT[pC]={n,C.create(f),(e or E() or {})}
pC=pC+1
end