Started to work on the scheduler rework

This commit is contained in:
2022-01-24 09:00:51 -05:00
parent 3fcba8825b
commit 47178dd3b3
4 changed files with 339 additions and 249 deletions
+4 -2
View File
@@ -15,7 +15,7 @@ package.path="./?.lua;../?.lua;../?/init.lua;../?.lua;../?/?/init.lua;"..package
The expected and actual should "match" (Might be impossible when playing with threads)
This will be pushed directly to the master as tests start existing.
]]
local multi, thread = require("multi"):init()
local multi, thread = require("multi"):init{priority=true}
local good = false
runTest = thread:newFunction(function()
local objects = multi:newProcessor("Basic Object Tests")
@@ -29,5 +29,7 @@ runTest = thread:newFunction(function()
print(multi:getTasksDetails())
os.exit()
end)
runTest().OnError(print)
runTest().OnError(function(...)
print("Error:",...)
end)
multi:mainloop()