Fixed bugs with love2d and removed debug prints

This commit is contained in:
Ryan Ward 2018-07-18 11:36:20 -04:00
parent 2447526a12
commit fae39b79e7
3 changed files with 2 additions and 3 deletions

View File

@ -777,7 +777,7 @@ function multi:threadloop(settings)
_,ret=coroutine.resume(Threads[i].thread,Globals) _,ret=coroutine.resume(Threads[i].thread,Globals)
end end
if _==false then 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 end
if ret==true or ret==false then if ret==true or ret==false then
ret={} ret={}

View File

@ -15,7 +15,7 @@ require("love.filesystem")
require("love.system") require("love.system")
require("love.timer") require("love.timer")
require("love.image") require("love.image")
require("multi") local multi = require("multi")
GLOBAL={} GLOBAL={}
isMainThread=false isMainThread=false
setmetatable(GLOBAL,{ setmetatable(GLOBAL,{

View File

@ -473,7 +473,6 @@ function multi:newSystemThreadedJobQueue(numOfCores)
while data do while data do
if data then if data then
local a=unpack(data) local a=unpack(data)
print(a)
if a=="_THREADINIT_" then if a=="_THREADINIT_" then
self.link.threadsResponded=self.link.threadsResponded+1 self.link.threadsResponded=self.link.threadsResponded+1
if self.link.threadsResponded==self.link.cores then if self.link.threadsResponded==self.link.cores then