diff --git a/multi/integration/loveManager/extensions.lua b/multi/integration/loveManager/extensions.lua index 657c8c2..3cab758 100644 --- a/multi/integration/loveManager/extensions.lua +++ b/multi/integration/loveManager/extensions.lua @@ -135,14 +135,13 @@ function multi:newSystemThreadedJobQueue(n) end end end) - print("Cores: ",c.cores) for i=1,c.cores do multi:newSystemThread("JobQueue_"..jqc.."_worker_"..i,function(jqc) local multi, thread = require("multi"):init() + require("love.timer") local function atomic(channel) return channel:pop() end - require("love.timer") local clock = os.clock local funcs = THREAD.createStaticTable("__JobQueue_"..jqc.."_table") local queue = love.thread.getChannel("__JobQueue_"..jqc.."_queue") diff --git a/test.lua b/test.lua index 2fbb34e..6f93f5f 100644 --- a/test.lua +++ b/test.lua @@ -54,7 +54,7 @@ function multi:newService(func) -- Priority managed threads c:OnStarted(c) time:Start() active = true - end + end function c.getUpTime() return time:Get() end