]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tasklet: make the low-level tasklet API take a flag
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 14:33:39 +0000 (15:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 19:13:41 +0000 (20:13 +0100)
commit0334cb28a9590a75a1dee7d4fe3dbfadd43710ca
tree683bc236e72ef555e5abcf875cdcd65d2b75e6f7
parente57581d76d86329646c4ff788f98c8cb9c03981b
MINOR: tasklet: make the low-level tasklet API take a flag

Everything in the tasklet layer supports flags, except that they are
just not implemented in the wakeup functions, while they are in the
task_wakeup functions. Initially it was not considered useful to pass
wakeup causes because these were essentially I/O, but with the growing
number of I/O handlers having to deal with various types of operations
(typically cheap I/O notifications on subscribe vs heavy parsing on
application-level wakeups), it would be nice to start to make this
distinction possible.

This commit extends _tasklet_wakeup_on() and _tasklet_wakeup_after()
to pass a set of flags that continues to be set as zero. For now this
changes nothing, but new functions will come.
include/haproxy/task.h