commit | 62a22aa23f761a40c8b473bfdec07d01b7779846 | [log] [tgz] |
---|---|---|
author | Thierry Fournier <thierry.fournier@ozon.io> | Sat Nov 28 21:06:35 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 02 21:53:16 2020 +0100 |
tree | f0d7f774e791ca3ad87636dc06a9e3f1578a4eba | |
parent | afc63e2cb1ff270d86823ac55fdbb25a46836e04 [diff] |
MINOR: lua-thread: Replace "struct hlua_function" allocation by dedicated function The goal is to allow execution of one main lua state per thread. This function will initialize the struct with other things than 0. With this function helper, the initialization is centralized and it prevents mistakes. This patch also keeps a reference to each declared function in a list. It will be useful in next patches to control consistency of declared references.