Working on new type system, planning out debugmanager

This commit is contained in:
2023-09-04 12:03:00 -04:00
parent a660b63581
commit 5f5723e936
11 changed files with 98 additions and 87 deletions
+8 -6
View File
@@ -102,7 +102,7 @@ multi:newThread("Scheduler Thread",function()
t, val = thread.hold(function()
return worked
end,{sleep=1})
end,{sleep=2})
if val == multi.TIMEOUT then
multi.error("SystemThreadedTables: Failed")
@@ -190,9 +190,11 @@ multi:newThread("Scheduler Thread",function()
thread.sleep(1)
os.exit(1)
end)
local stp = multi:newSystemThreadedProcessor(1)
local stp = multi:newSystemThreadedProcessor(5)
local tloop = stp:newTLoop(nil, 1)
local tloop = stp:newTLoop(function()
print("Test")
end, 1)
multi:newSystemThread("Testing proxy copy THREAD",function(tloop)
local multi, thread = require("multi"):init()
@@ -235,18 +237,18 @@ multi:newThread("Scheduler Thread",function()
end)
t, val = thread.hold(function()
return count == 10
return proxy_test
end,{sleep=5})
if val == multi.TIMEOUT then
multi.error("SystemThreadedProcessor/Proxies: Failed")
os.exit(1)
else
multi.success("SystemThreadedProcessor: OK")
end
thread.sleep(2)
multi.success("SystemThreadedProcessor: OK")
we_good = true
multi:Stop() -- Needed in love2d tests to stop the main runner
end).OnError(multi.error)