Fixed bugs with love2d and removed debug prints
This commit is contained in:
parent
2447526a12
commit
fae39b79e7
@ -777,7 +777,7 @@ function multi:threadloop(settings)
|
||||
_,ret=coroutine.resume(Threads[i].thread,Globals)
|
||||
end
|
||||
if _==false then
|
||||
self.Parent.OnError:Fire(Threads[i],"Error in thread: <"..Threads[i].Name.."> "..ret)
|
||||
multi.OnError:Fire(Threads[i],"Error in thread: <"..Threads[i].Name.."> "..ret)
|
||||
end
|
||||
if ret==true or ret==false then
|
||||
ret={}
|
||||
|
||||
@ -15,7 +15,7 @@ require("love.filesystem")
|
||||
require("love.system")
|
||||
require("love.timer")
|
||||
require("love.image")
|
||||
require("multi")
|
||||
local multi = require("multi")
|
||||
GLOBAL={}
|
||||
isMainThread=false
|
||||
setmetatable(GLOBAL,{
|
||||
|
||||
@ -473,7 +473,6 @@ function multi:newSystemThreadedJobQueue(numOfCores)
|
||||
while data do
|
||||
if data then
|
||||
local a=unpack(data)
|
||||
print(a)
|
||||
if a=="_THREADINIT_" then
|
||||
self.link.threadsResponded=self.link.threadsResponded+1
|
||||
if self.link.threadsResponded==self.link.cores then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user