mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-23 22:12:46 +00:00
b289fd1420
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
|
||
---|---|---|
.. | ||
api | ||
acl.txt | ||
body-parsing.txt | ||
connect-status.txt | ||
connection-header.txt | ||
connection-scale.txt | ||
entities-v2.txt | ||
entities.txt | ||
fd-migration.txt | ||
hashing.txt | ||
header-parser-speed.txt | ||
header-tree.txt | ||
http-cookies.txt | ||
http-docs.txt | ||
http-parsing.txt | ||
list.fig | ||
list.png | ||
listener-states.fig | ||
listener-states.png | ||
lua_socket.fig | ||
lua_socket.pdf | ||
muxes.fig | ||
muxes.pdf | ||
muxes.png | ||
muxes.svg | ||
naming.txt | ||
notes-layers.txt | ||
notes-poll-connect.txt | ||
notes-pollhup.txt | ||
notes-polling.txt | ||
pattern.dia | ||
pattern.pdf | ||
polling-states.fig | ||
repartition-be-fe-fi.txt | ||
sched.fig | ||
sched.pdf | ||
sched.png | ||
sched.svg | ||
ssl_cert.dia | ||
stats-v2.txt | ||
stream-sock-states.fig |