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

Function ts_lua_destroy_async_ctx

plugins/lua/ts_lua_util.cc:655–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655void
656ts_lua_destroy_async_ctx(ts_lua_http_ctx *http_ctx)
657{
658 ts_lua_cont_info *ci;
659
660 ci = &http_ctx->cinfo;
661
662 // update thread stats
663 ts_lua_main_ctx *const main_ctx = ci->routine.mctx;
664 ts_lua_ctx_stats *const stats = main_ctx->stats;
665
666 TSMutexLock(stats->mutexp);
667 --stats->threads;
668 TSMutexUnlock(stats->mutexp);
669
670 ts_lua_release_cont_info(ci);
671 TSfree(http_ctx);
672}
673
674void
675ts_lua_set_vconn_ctx(lua_State *L, ts_lua_vconn_ctx *ctx)

Callers 1

ts_lua_schedule_handlerFunction · 0.85

Calls 4

TSMutexLockFunction · 0.85
TSMutexUnlockFunction · 0.85
ts_lua_release_cont_infoFunction · 0.85
TSfreeFunction · 0.85

Tested by

no test coverage detected