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)
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={}

View File

@ -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,{

View File

@ -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