MINOR: lua-thread: Store each function reference and init reference in array
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 22:57:24 +0000 (23:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 20:53:16 +0000 (21:53 +0100)
commitc749259dff591b234a42e0ab825eed31f4943660
tree16b74ff06b6fc3067807c0e4e716508cba0bf3d5
parent021d986ecc3b7bbdadf3196aabe029894ffc4a9a
MINOR: lua-thread: Store each function reference and init reference in array

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

The array introduces storage of one reference per thread, because each
lua state can have different reference id for a same function. A function
returns the preferred state id according to configuration and current
thread id.
include/haproxy/hlua-t.h
src/hlua.c