mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05: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 | ||