commit | 85d9b84eb14987c9aa012195f09979c56e766447 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jul 27 17:14:41 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jul 27 17:18:22 2018 +0200 |
tree | 076d1945d2c61b7950711237ce8fb854f8ebca96 | |
parent | c786768dbaa178a2b9ad82eebf004eb3e541201d [diff] |
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.