mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
1.9.2 is out!
Added, updated, and fixed stuff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user