summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-03-26 10:22:15 -0400
committerGitHub <noreply@github.com>2024-03-26 10:22:15 -0400
commit31f1988fb592352cf4c4730d482c9f451cc51da2 (patch)
tree93a3f25ff650a50c594dd1c09c7fff267c1f9379 /indra/llcommon
parent57d345a45c8cee611139c2177e635b1306be7339 (diff)
parent98e6356aed0c757f16267cc2ae921f9c90a249fe (diff)
Merge pull request #1048 from secondlife/lua-check-stop
Add LL.check_stop() entry point and call it in fiber scheduler().
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/lua_function.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llcommon/lua_function.cpp b/indra/llcommon/lua_function.cpp
index 962e9ee2fa..9f0abd5674 100644
--- a/indra/llcommon/lua_function.cpp
+++ b/indra/llcommon/lua_function.cpp
@@ -682,6 +682,15 @@ std::pair<LuaFunction::Registry&, LuaFunction::Lookup&> LuaFunction::getState()
}
/*****************************************************************************
+* check_stop()
+*****************************************************************************/
+lua_function(check_stop, "ensure that a Lua script responds to viewer shutdown")
+{
+ LLCoros::checkStop();
+ return 0;
+}
+
+/*****************************************************************************
* help()
*****************************************************************************/
lua_function(help,