mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Fixing issues with the new thread scheduler, nested yields need handling
This commit is contained in:
+12
-5
@@ -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(...)
|
||||
|
||||
Reference in New Issue
Block a user