Update 'controller/Scheduler.lua'
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
function AddQueue(f, a)
|
function AddQueue(f, a, a2, a3)
|
||||||
local i = #Queue + 1
|
local i = #Queue + 1
|
||||||
Queue[i] = coroutine.create(f)
|
Queue[i] = coroutine.create(f)
|
||||||
coroutine.resume(Queue[i], a)
|
coroutine.resume(Queue[i], a, a2, a3)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ while not finish do
|
|||||||
finish = false
|
finish = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if os.clock() - t1 > 1 do
|
if os.clock() - t1 > 1 then
|
||||||
sleep(0)
|
sleep(0)
|
||||||
t1 = os.clock()
|
t1 = os.clock()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user