commit | e35f03239d340735c6f2dbce094995c3fc63f258 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Jun 14 11:00:46 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 14 11:00:46 2022 +0200 |
tree | 4e9b01007a44f0fe97e6a267ec421dd7a3e2e529 | |
parent | 1a85a958dd619defb86810492db129e8cc74fd0c [diff] |
CLEANUP: hlua: check for at least 2 threads on a task In 1.9-dev1, commit 5bc9972ed ("BUG/MINOR: lua/threads: Make lua's tasks sticky to the current thread") to detect unconfigured Lua tasks that could run on any thread, by comparing their thread mask with MAX_THREADS_MASK. The proper way to do it is to check for at least 2 threads in their mask in fact. This is more reliable and allows to get rid of MAX_THREADS_MASK there.