MCPcopy Create free account
hub / github.com/apache/trafficserver / ts_lua_get_cont_info

Function ts_lua_get_cont_info

plugins/lua/ts_lua_util.cc:600–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600ts_lua_cont_info *
601ts_lua_get_cont_info(lua_State *L)
602{
603 ts_lua_cont_info *ci;
604
605 lua_pushliteral(L, "__ts_cont_info");
606 lua_rawget(L, LUA_GLOBALSINDEX);
607 ci = static_cast<decltype(ci)>(lua_touserdata(L, -1));
608
609 lua_pop(L, 1); // pop the coroutine out
610
611 return ci;
612}
613
614ts_lua_http_ctx *
615ts_lua_create_async_ctx(lua_State *L, ts_lua_cont_info *hci, int n)

Callers 6

ts_lua_fetchFunction · 0.85
ts_lua_fetch_multiFunction · 0.85
ts_lua_scheduleFunction · 0.85
ts_lua_sleep_msFunction · 0.85
ts_lua_sleepFunction · 0.85
ts_lua_host_lookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected