1.9.2 is out!

Added, updated, and fixed stuff
This commit is contained in:
2018-05-17 01:19:56 -04:00
parent 509086295c
commit e32720b687
11 changed files with 556 additions and 171 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ multi:newThread("test0",function()
end
end
end)
GLOBAL["BENCH"]=10
GLOBAL["BENCH"]=1
print("Platform is: ",multi:getPlatform()) -- returns love2d or lanes depending on which platform you are using... If I add more intergrations then this method will be updated! corona sdk may see this library in the future...
multi:mainloop()
--[[ Output on my machine! I am using luajit and have 6 cores on my computer. Your numbers will vary, but it should look something like this
+2 -2
View File
@@ -1,4 +1,4 @@
package.path="?/init.lua;"..package.path
--~ package.path="?/init.lua;"..package.path
local GLOBAL,sThread=require("multi.integration.lanesManager").init()
jQueue=multi:newSystemThreadedJobQueue(n)
jQueue:registerJob("TEST_JOB",function(a,s)
@@ -11,7 +11,7 @@ jQueue:registerJob("TEST_JOB2",function()
end)
jQueue:start()
jQueue:doToAll(function()
print("Doing this 6? times!")
print("Doing this 16? times!")
end)
for i=1,10 do -- Job Name of registered function, ... varargs
jQueue:pushJob("TEST_JOB","This is a test!",math.random(1,1000000))