commit | fc69e410e605677be567ee43464424ad9336840f | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Sep 28 08:58:49 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Oct 08 17:22:26 2021 +0200 |
tree | b4eb39f7909170f4a3843c791493df78bc036c11 | |
parent | d04bc3ac214038ba42a459f93d2330f26f53475a [diff] |
MINOR: threads: make tg point to the current thread's group A the "tg" thread-local variable now always points to the current thread group. It's pre-initializd to the first one during boot and is set to point to the thread's one by ha_set_tid(). This last one takes care of checking whether the thread group was assigned or not because it may be called during boot before threads are initialized.