From 69051e1a47006ebd24dd47fc8448d2f7b7e6ef57 Mon Sep 17 00:00:00 2001 From: fesily Date: Fri, 8 Jul 2022 15:38:57 +0800 Subject: meta: openresty add api run_worker_thread --- meta/3rd/OpenResty/library/ngx.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'meta/3rd/OpenResty/library/ngx.lua') diff --git a/meta/3rd/OpenResty/library/ngx.lua b/meta/3rd/OpenResty/library/ngx.lua index 60102245..9a35fcc4 100644 --- a/meta/3rd/OpenResty/library/ngx.lua +++ b/meta/3rd/OpenResty/library/ngx.lua @@ -4245,5 +4245,18 @@ ngx.resp = {} ---@return string|'"truncated"' error function ngx.resp.get_headers(max_headers, raw) end +---@alias ngx.thread.arg boolean|number|integer|string|lightuserdata|table + +---@param threadpool string +---@param module_name string +---@param func_name string +---@param arg1? ngx.thread.arg +---@param arg2? ngx.thread.arg +---@param ... ngx.thread.arg +---@return boolean ok +---@return ngx.thread.arg? result_or_error +---@return ... +function ngx.run_worker_thread(threadpool, module_name, func_name, arg1, arg2, ...) +end return ngx -- cgit v1.2.3