commit | afc63e2cb1ff270d86823ac55fdbb25a46836e04 | [log] [tgz] |
---|---|---|
author | Thierry Fournier <thierry.fournier@ozon.io> | Sat Nov 28 17:06:51 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 02 21:53:16 2020 +0100 |
tree | acb44755eb3115875d12c61132fd0c4ab2cd3572 | |
parent | 7cbe5046e879368b54917a0a2171f729d8bb98d4 [diff] |
MINOR: lua-thread: Replace global gL var with an array of states The goal is to allow execution of one main lua state per thread. The array of states is initialized at the max number of thread +1. We define the index 0 is the common state shared by all threads and should be locked. Other index index are dedicated to each one thread. The old gL now becomes hlua_states[0].