BUILD: sched: fix build with DEBUG_THREAD with the previous commit
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Nov 2022 09:24:07 +0000 (10:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Nov 2022 09:24:07 +0000 (10:24 +0100)
commit5ec79f1a042982f90f790e97773af6849e8d5ddc
tree65e25b114f5a272cdf1c4509cf4a97680b5fe858
parentfc50b9dd14a42aa6b56133edbf7b926368c9a710
BUILD: sched: fix build with DEBUG_THREAD with the previous commit

The build with DEBUG_THREAD was broken by commit fc50b9dd1 ("BUG/MAJOR:
sched: protect task during removal from wait queue"). It took me a while
to figure how to declare and aligned and initialized rwlock that wasn't
static, but it turns out that __decl_aligned_rwlock() does exactly this,
so that we don't have to assign an integer value when a struct is expected
in case of debugging.

No backport is needed.
src/task.c