jobqueues having isues with stp

This commit is contained in:
2023-07-17 00:44:59 -04:00
parent 9e6552d42e
commit bbaac2d779
5 changed files with 17 additions and 15 deletions
-4
View File
@@ -62,11 +62,9 @@ function multi:newSystemThreadedTable(name)
self.tab = THREAD.createTable(self.Name)
setmetatable(self,{
__index = function(t, k)
print("Getting...", k)
return self.tab[k]
end,
__newindex = function(t,k,v)
print("Setting...", k, v)
self.tab[k] = v
end
})
@@ -85,11 +83,9 @@ function multi:newSystemThreadedTable(name)
setmetatable(c,{
__index = function(t, k)
print("Getting...", k)
return c.tab[k]
end,
__newindex = function(t,k,v)
print("Setting...", k, v)
c.tab[k] = v
end
})
+1 -1
View File
@@ -14,7 +14,7 @@ math.random()
math.random()
stab = THREAD.createTable(THREAD_NAME .. THREAD_ID)
if GLOBAL["__env"] then
local env = THREAD.unpackENV(GLOBAL["__env"])
local env = THREAD.getENV()
for i,v in pairs(env) do
_G[i] = v
end