changes
This commit is contained in:
@@ -228,6 +228,7 @@ local libcomputer = {
|
||||
local deadline = computer.uptime() + (type(timeout) == "number" and timeout or math.huge)
|
||||
|
||||
repeat
|
||||
print("waiting for signal", computer.uptime())
|
||||
yield() -- give executor a chance to give us stuff
|
||||
local s = table.pack(computer.popSignal())
|
||||
if s.n > 0 then
|
||||
@@ -437,7 +438,6 @@ local lastGC = computer.uptime()
|
||||
while true do
|
||||
timeout = nextDeadline()
|
||||
bubbleYield = false
|
||||
collectgarbage()
|
||||
|
||||
if computer.uptime() - lastGC >= gcInterval then
|
||||
collectgarbage("collect")
|
||||
|
||||
Reference in New Issue
Block a user