commit | ecb83c24c43d85a6b4de043b426c1248d4d97318 | [log] [tgz] |
---|---|---|
author | Thierry Fournier <thierry.fournier@ozon.io> | Sat Nov 28 15:49:44 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 02 21:53:16 2020 +0100 |
tree | 52257a42db16118891629bc9405c6c89b8dfc5df | |
parent | b8cef175bd96ed25d7748d9f7d288b8bb5ce27d7 [diff] |
MINOR: lua-thread: Add the "thread" core variable The goal is to allow execution of one main lua state per thread. This commit introduces this variable in the core. Lua state initialized by thread will have access to this variable, which reports the executing thread. 0 indicates the shared thread. Programs which must be executed only once can check for core.thread <= 1.