Fixed packing of values into threads, need to fix system proxies and system threaded processors

This commit is contained in:
2023-08-01 23:45:06 -04:00
parent bb0592f3eb
commit 59cbeb6597
5 changed files with 27 additions and 40 deletions
+5 -2
View File
@@ -55,6 +55,9 @@ multi:newThread("Scheduler Thread",function()
multi_assert("Passing some args", a, "First argument is not as expected 'Passing some args'")
multi_assert(true, e, "Argument e is not true!")
multi_assert("table", type(f), "Argument f is not a table!")
for i,v in pairs(queue) do
print("Queue:",i,v)
end
queue:push("done")
end,"Passing some args", 1, 2, 3, true, {"Table"}).OnError(function(self,err)
multi.error(err)
@@ -90,14 +93,14 @@ multi:newThread("Scheduler Thread",function()
local worked = false
multi:newSystemThread("testing tables",function()
tab=THREAD.waitFor("YO"):init()
tab=THREAD.waitFor("YO")
THREAD.hold(function() return tab["test1"] end)
THREAD.sleep(.1)
tab["test2"] = "Whats so funny?"
end).OnError(multi.error)
multi:newThread("test2",function()
thread.hold(function() return test["test2"] end)
print(thread.hold(function() return test["test2"] end))
worked = true
end)