From d2f198493b8d3de1c98c94db17a17e378925792e Mon Sep 17 00:00:00 2001 From: carsakiller Date: Fri, 27 Oct 2023 20:42:05 -0400 Subject: refactor: replace openresty with LuaCATS submodule --- meta/3rd/OpenResty | 1 + meta/3rd/OpenResty/library/thread/exdata.lua | 43 ---------------------------- 2 files changed, 1 insertion(+), 43 deletions(-) create mode 160000 meta/3rd/OpenResty delete mode 100644 meta/3rd/OpenResty/library/thread/exdata.lua (limited to 'meta/3rd/OpenResty/library/thread/exdata.lua') diff --git a/meta/3rd/OpenResty b/meta/3rd/OpenResty new file mode 160000 index 00000000..3bec36f0 --- /dev/null +++ b/meta/3rd/OpenResty @@ -0,0 +1 @@ +Subproject commit 3bec36f0f645bb38b3c8208990d5c36feb66ce3d diff --git a/meta/3rd/OpenResty/library/thread/exdata.lua b/meta/3rd/OpenResty/library/thread/exdata.lua deleted file mode 100644 index 22573d84..00000000 --- a/meta/3rd/OpenResty/library/thread/exdata.lua +++ /dev/null @@ -1,43 +0,0 @@ ----@meta - ---- **syntax:** *exdata = th_exdata(data?)* ---- ---- This API allows for embedding user data into a thread (`lua_State`). ---- ---- The retrieved `exdata` value on the Lua land is represented as a cdata object ---- of the ctype `void*`. ---- ---- As of this version, retrieving the `exdata` (i.e. `th_exdata()` without any ---- argument) can be JIT compiled. ---- ---- Usage: ---- ---- ```lua ---- local th_exdata = require "thread.exdata" ---- ---- th_exdata(0xdeadbeefLL) -- set the exdata of the current Lua thread ---- local exdata = th_exdata() -- fetch the exdata of the current Lua thread ---- ``` ---- ---- Also available are the following public C API functions for manipulating ---- `exdata` on the C land: ---- ---- ```C ---- void lua_setexdata(lua_State *L, void *exdata); ---- void *lua_getexdata(lua_State *L); ---- ``` ---- ---- The `exdata` pointer is initialized to `NULL` when the main thread is created. ---- Any child Lua thread will inherit its parent's `exdata`, but still can override ---- it. ---- ---- **Note:** This API will not be available if LuaJIT is compiled with ---- `-DLUAJIT_DISABLE_FFI`. ---- ---- **Note bis:** This API is used internally by the OpenResty core, and it is ---- strongly discouraged to use it yourself in the context of OpenResty. ----@param data? any ----@return any? data -local function exdata(data) end - -return exdata \ No newline at end of file -- cgit v1.2.3