mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Fixed some bugs
This commit is contained in:
@@ -167,12 +167,12 @@ function multi:newSystemThreadedJobQueue(n)
|
||||
return queueJob:pop()
|
||||
end)
|
||||
idle = clock()
|
||||
thread:newThread("test",function()
|
||||
thread:newThread("JobQueue-Spawn",function()
|
||||
local name = table.remove(dat, 1)
|
||||
local jid = table.remove(dat, 1)
|
||||
local args = table.remove(dat, 1)
|
||||
queueReturn:push{jid, funcs[name](multi.unpack(args)), queue}
|
||||
end)
|
||||
end).OnError(multi.error)
|
||||
end
|
||||
end).OnError(print)
|
||||
thread:newThread("DoAllHandler",function()
|
||||
|
||||
@@ -132,7 +132,7 @@ function multi.InitSystemThreadErrorHandler()
|
||||
thread.yield()
|
||||
_,data = __ConsoleLinda:receive(0, "Q")
|
||||
if data then
|
||||
print(data[1])
|
||||
--print(data[1])
|
||||
end
|
||||
for i = #threads, 1, -1 do
|
||||
temp = threads[i]
|
||||
|
||||
Reference in New Issue
Block a user