mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-11 03:31:36 +00:00
advanced async mode (EVENT_HDL_ASYNC_TASK) provided full support for
custom tasklets registration.
Due to the similarities between tasks and tasklets, it may be useful
to use the advanced mode with an existing task (not a tasklet).
While the API did not explicitly disallow this usage, things would
get bad if we try to wakeup a task using tasklet_wakeup() for notifying
the task about new events.
To make the API support both custom tasks and tasklets, we use the
TASK_IS_TASKLET() macro to call the proper waking function depending
on the task's type:
- For tasklets: we use tasklet_wakeup()
- For tasks: we use task_wakeup()
If
|
||
---|---|---|
.. | ||
appctx.txt | ||
buffer-api.txt | ||
event_hdl.txt | ||
filters.txt | ||
htx-api.txt | ||
initcalls.txt | ||
ist.txt | ||
layers.txt | ||
list.txt | ||
pools.txt | ||
scheduler.txt |