]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tasks: extend the state bits from 8 to 16 and remove the reason
authorWilly Tarreau <w@1wt.eu>
Thu, 26 Jul 2018 14:13:00 +0000 (16:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Jul 2018 14:13:00 +0000 (16:13 +0200)
commitf0cea1ee3f17dcfdd8a033fe713303d407907f71
treeb8d3dd4f8e65c7d28e7b2d56f4654ffeccea259a
parentad8bd2467c017965a21f12e6eb9118272a7f0293
MINOR: tasks: extend the state bits from 8 to 16 and remove the reason

By removing the reason code for the wakeup we can gain 8 extra bits to
encode the task's state. The reason code was never used at all and is
wrong by design since subsequent calls will OR this value anyway. Let's
say it goodbye and leave the room for more precious bits. The woken bits
were moved to the higher byte so that the most important bits can stay
grouped together.
include/types/task.h