MINOR: task: stop abusing the nice field to detect a tasklet
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Mar 2021 14:54:11 +0000 (15:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 07:30:08 +0000 (08:30 +0100)
commitdb4e238938588b0a1ae9a5ebd95c2c737e77ceb4
tree58b975e5989af310adf8c2f5cdcf87df2a78e0bb
parent1adaddb494e16f365955af52785e31e522af55bd
MINOR: task: stop abusing the nice field to detect a tasklet

It's cleaner to use a flag from the task's state to detect a tasklet
and it's even cheaper. One of the best benefits is that this will
allow to get the nice field out of the common part since the tasklet
doesn't need it anymore. This commit uses the last task bit available
but that's temporary as the purpose of the change is to extend this.
include/haproxy/task-t.h
include/haproxy/task.h
src/task.c