summaryrefslogtreecommitdiff
path: root/indra/llimage/llimagej2c.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-03-27 15:53:48 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-03-27 15:53:48 -0400
commitc618758c7c91917905b1075e29944ef70e7e9b33 (patch)
tree18336f315261801787643a53c7cea3b699d12c23 /indra/llimage/llimagej2c.cpp
parent5b04ae7812e6cb0d0c9895aec6db6a206d4e09e8 (diff)
Run loaded `require()` module on Lua's main thread.
The problem with running a `require()` module on a Lua coroutine is that it prohibits calling `leap.request()` at module load time. When a coroutine calls `leap.request()`, it must yield back to Lua's main thread -- but a `require()` module is forbidden from yielding. Running on Lua's main thread means that (after potentially giving time slices to other ready coroutines) `fiber.lua` will request the response event from the viewer, and continue processing the loaded module without having to yield.
Diffstat (limited to 'indra/llimage/llimagej2c.cpp')
0 files changed, 0 insertions, 0 deletions