commit | 75fc02956b1f2b31d80dda0c9be67c591fa7bade | [log] [tgz] |
---|---|---|
author | Thierry Fournier <thierry.fournier@ozon.io> | Sat Nov 28 13:18:56 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 02 21:53:16 2020 +0100 |
tree | 82dc0e0aa84c2417bd75640f85d7854a64282588 | |
parent | 1eac28f5fc3b5ed293824d5bea04fd9b2723ac37 [diff] |
MINOR: lua-thread: make hlua_ctx_init() get L from its caller The goal is to allow execution of one main lua state per thread. The function hlua_ctx_init() now gets the original lua state from its caller. This allows the initialisation of lua_thread (coroutines) from any master lua state. The parent lua state is stored in the hlua struct. This patch is a temporary transition, it will be modified later.