MINOR: lua-thread: Split hlua_post_init() function in two parts
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 14:37:17 +0000 (15:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 20:53:16 +0000 (21:53 +0100)
commitb8cef175bd96ed25d7748d9f7d288b8bb5ce27d7
treebea0dad4da2ca77bd943360be3eb86161a535219
parentc93c15cf8c53df77f871037c809a03ea0f347c8d
MINOR: lua-thread: Split hlua_post_init() function in two parts

The goal is to allow execution of one main lua state per thread.

This function will be called for each initialized lua state, so
one per thread. The split transforms the lua state variable from
global to local.
src/hlua.c