more work and bug fixes
This commit is contained in:
parent
4384dbbaee
commit
e1446c009d
@ -135,14 +135,13 @@ function multi:newSystemThreadedJobQueue(n)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
print("Cores: ",c.cores)
|
|
||||||
for i=1,c.cores do
|
for i=1,c.cores do
|
||||||
multi:newSystemThread("JobQueue_"..jqc.."_worker_"..i,function(jqc)
|
multi:newSystemThread("JobQueue_"..jqc.."_worker_"..i,function(jqc)
|
||||||
local multi, thread = require("multi"):init()
|
local multi, thread = require("multi"):init()
|
||||||
|
require("love.timer")
|
||||||
local function atomic(channel)
|
local function atomic(channel)
|
||||||
return channel:pop()
|
return channel:pop()
|
||||||
end
|
end
|
||||||
require("love.timer")
|
|
||||||
local clock = os.clock
|
local clock = os.clock
|
||||||
local funcs = THREAD.createStaticTable("__JobQueue_"..jqc.."_table")
|
local funcs = THREAD.createStaticTable("__JobQueue_"..jqc.."_table")
|
||||||
local queue = love.thread.getChannel("__JobQueue_"..jqc.."_queue")
|
local queue = love.thread.getChannel("__JobQueue_"..jqc.."_queue")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user