BUG/MEDIUM: tasks: Don't insert in the global rqueue if nbthread == 1
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 16 Aug 2018 17:03:02 +0000 (19:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Aug 2018 17:25:46 +0000 (19:25 +0200)
commitd8b7a4701d1b01db5b0efc1de4227acfa9604d0f
treec5bb7912ba6b1559136c941698b370ef1f908997
parent5c110b924e3368088568293d56e08e2e85ea8bc4
BUG/MEDIUM: tasks: Don't insert in the global rqueue if nbthread == 1

Make sure we don't insert a task in the global run queue if nbthread == 1,
as, as an optimisation, we avoid reading from it if nbthread == 1.
src/task.c