summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/ErrorQueue.lua
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-03-25 12:35:48 -0400
committerGitHub <noreply@github.com>2024-03-25 12:35:48 -0400
commit2eb6901c7c9ae87a588d99399e4b41640e4c4881 (patch)
tree6621d8e565119a131af1edc9397039f7af6be8b2 /indra/newview/scripts/lua/ErrorQueue.lua
parent7bf84bdcbf13084ff3b94590e4061b4a6708b4dc (diff)
parentfd8c5fced1ee62e08c55adf92fb9c8d0e52d313a (diff)
Merge pull request #1038 from secondlife/lua-fiber
Add fiber.lua, which permits calling leap.request() even from Lua's main thread.
Diffstat (limited to 'indra/newview/scripts/lua/ErrorQueue.lua')
-rw-r--r--indra/newview/scripts/lua/ErrorQueue.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/ErrorQueue.lua b/indra/newview/scripts/lua/ErrorQueue.lua
index a6d4470044..076742815a 100644
--- a/indra/newview/scripts/lua/ErrorQueue.lua
+++ b/indra/newview/scripts/lua/ErrorQueue.lua
@@ -3,18 +3,22 @@
-- raise that error.
local WaitQueue = require('WaitQueue')
+-- local debug = require('printf')
+local function debug(...) end
local ErrorQueue = WaitQueue:new()
function ErrorQueue:Error(message)
-- Setting Error() is a marker, like closing the queue. Once we reach the
-- error, every subsequent Dequeue() call will raise the same error.
+ debug('Setting self._closed to %q', message)
self._closed = message
self:_wake_waiters()
end
function ErrorQueue:Dequeue()
local value = WaitQueue.Dequeue(self)
+ debug('ErrorQueue:Dequeue: base Dequeue() got %s', value)
if value ~= nil then
-- queue not yet closed, show caller
return value