commit | 021d986ecc3b7bbdadf3196aabe029894ffc4a9a | [log] [tgz] |
---|---|---|
author | Thierry Fournier <thierry.fournier@ozon.io> | Sat Nov 28 23:42:03 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 02 21:53:16 2020 +0100 |
tree | 7506c5778b60a45a9c583957aee97ace89f4cc94 | |
parent | 62a22aa23f761a40c8b473bfdec07d01b7779846 [diff] |
MINOR: lua-thread: Replace state_from by state_id The goal is to allow execution of one main lua state per thread. "state_from" is a pointer to the parent lua state. "state_id" is the index of the parent state id in the reference lua states array. "state_id" is better because the lock is a "== 0" test which is quick than pointer comparison. In other way, the state_id index could index other things the the Lua state concerned. I think to the function references.