]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MINOR: threads: unbreak build with threads disabled
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Jul 2018 15:14:41 +0000 (17:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Jul 2018 15:18:22 +0000 (17:18 +0200)
commit85d9b84eb14987c9aa012195f09979c56e766447
tree076d1945d2c61b7950711237ce8fb854f8ebca96
parentc786768dbaa178a2b9ad82eebf004eb3e541201d
BUILD/MINOR: threads: unbreak build with threads disabled

Depending on the optimization level, gcc may complain that wake_thread()
uses an invalid array index for poller_wr_pipe[] when called from
__task_wakeup(). Normally the condition to get there never happens,
but it's simpler to ifdef out this part of the code which is only
used to wake other threads up. No backport is needed, this was brought
by the recent introduction of the ability to wake a sleeping thread.
src/task.c