commit | 7cbe5046e879368b54917a0a2171f729d8bb98d4 | [log] [tgz] |
---|---|---|
author | Thierry Fournier <thierry.fournier@ozon.io> | Sat Nov 28 17:02:21 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 02 21:53:16 2020 +0100 |
tree | b7cb1ea4c2b0de2e3ecbbf45e9752cef0baf8437 | |
parent | 3c539327f49f3457d866053d753795d9168dbcb8 [diff] |
MEDIUM: lua-thread: Apply lock only if the parent state is the main thread The goal is to allow execution of one main lua state per thread. This patch opens the way to addition of a per-thread dedicated lua state. By passing the hlua we can figure the original state that's been used and decide to lock or not.