Fixing issues with the new thread scheduler, nested yields need handling

This commit is contained in:
2022-01-31 08:31:38 -05:00
parent cdb4bfda11
commit 49c0bd3930
5 changed files with 73 additions and 35 deletions
+12 -5
View File
@@ -18,15 +18,22 @@ package.path="./?.lua;../?.lua;../?/init.lua;../?.lua;../?/?/init.lua;"..package
local multi, thread = require("multi"):init{priority=true}
local good = false
runTest = thread:newFunction(function()
local objects = multi:newProcessor("Basic Object Tests")
objects.Start()
require("tests/objectTests")(objects,thread)
objects.Stop()
-- thread.sleep(1)
-- local objects = multi:newProcessor("Basic Object Tests")
-- objects.OnError(function(...)
-- print("Error: ",...)
-- end)
-- objects.Start()
-- require("tests/objectTests")(objects,thread)
-- objects.Stop()
local conn_thread = multi:newProcessor("Connection/Thread Tests")
conn_thread.OnError(function(...)
print("Error: ",...)
end)
conn_thread.Start()
require("tests/connectionTest")(conn_thread,thread)
conn_thread.Stop()
print(multi:getTasksDetails())
--print(multi:getTasksDetails())
os.exit()
end)
runTest().OnError(function(...)