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
|
||||
Queue[i] = coroutine.create(f)
|
||||
coroutine.resume(Queue[i], a)
|
||||
coroutine.resume(Queue[i], a, a2, a3)
|
||||
end
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ while not finish do
|
||||
finish = false
|
||||
end
|
||||
end
|
||||
if os.clock() - t1 > 1 do
|
||||
if os.clock() - t1 > 1 then
|
||||
sleep(0)
|
||||
t1 = os.clock()
|
||||
end
|
||||
|
Reference in New Issue
Block a user