MEDIUM: lua-thread: No longer use locked context in initialization parts
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 15:05:05 +0000 (16:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 20:53:16 +0000 (21:53 +0100)
commit3c539327f49f3457d866053d753795d9168dbcb8
tree82d04c24130194b403d1ced9be22d7be141f4a4e
parentecb83c24c43d85a6b4de043b426c1248d4d97318
MEDIUM: lua-thread: No longer use locked context in initialization parts

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

Stop using locks in init part, we will use only in parts where
the parent lua state is known, so we could take decision about lock
according with the lua parent state.
src/hlua.c