MEDIUM: lua-thread: make hlua_post_init() no longer use the runtime execution function
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 09:49:59 +0000 (10:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 20:53:16 +0000 (21:53 +0100)
commit670db24329620fa9acc5638125c36e8bc23f0c4c
treebe08dc02cfc28f1b6f235481fb89ae8e69b2eb94
parent3fb9e5133a06617071262a380cf103250011bb90
MEDIUM: lua-thread: make hlua_post_init() no longer use the runtime execution function

The goal is to no longer use "struct hlua" with global main lua_state.

The hlua_post_init() is executed during start phase, it does not require
yielding nor any advanced runtime error processing. Let's simplify this
by re-implementing the code using lower-level functions which directly
take a state and not an hlua anymore.
src/hlua.c