]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tasks: Get rid of active_tasks_mask.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 29 May 2019 17:22:43 +0000 (19:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 May 2019 19:53:37 +0000 (21:53 +0200)
commitcfbb3e6560c8177752a6a29ca5736f0678784818
treed3750417000ad40f30ef027ab3eb980ffe57ab43
parent661167d136d5bf4ac40ac4fae450d66dd69a64df
MEDIUM: tasks: Get rid of active_tasks_mask.

Remove the active_tasks_mask variable, we can deduce if we've work to do
by other means, and it is costly to maintain. Instead, introduce a new
function, thread_has_tasks(), that returns non-zero if there's tasks
scheduled for the thread, zero otherwise.
include/proto/task.h
src/debug.c
src/haproxy.c
src/task.c