summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/fiber.lua
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-05-31 11:19:58 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-05-31 11:19:58 -0400
commite352192045cfe23a681dcaba71d94311f42e230f (patch)
treea533a7c6ef6fc243a4c30c386d4ced6546916271 /indra/newview/scripts/lua/fiber.lua
parentd61831cabb8c63677e3684c8ba12b24b66923aa9 (diff)
Add a bit more dbg() conditional diagnostic output.
Diffstat (limited to 'indra/newview/scripts/lua/fiber.lua')
-rw-r--r--indra/newview/scripts/lua/fiber.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/scripts/lua/fiber.lua b/indra/newview/scripts/lua/fiber.lua
index 9057e6c890..cae27b936b 100644
--- a/indra/newview/scripts/lua/fiber.lua
+++ b/indra/newview/scripts/lua/fiber.lua
@@ -17,8 +17,8 @@
-- or with an error).
local printf = require 'printf'
--- local dbg = printf
local function dbg(...) end
+-- local dbg = printf
local coro = require 'coro'
local fiber = {}
@@ -303,6 +303,8 @@ function fiber.yield()
end
-- We're ready! Just return to caller. In this situation we don't care
-- whether there are other ready fibers.
+ dbg('fiber.yield() returning to %s (%sothers are ready)',
+ fiber.get_name(), ((not others) and "no " or ""))
end
-- Run fibers until all but main have terminated: return nil.