MAJOR: applet: applet scheduler rework.
authorEmeric Brun <ebrun@haproxy.com>
Mon, 26 Jun 2017 14:36:53 +0000 (16:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Jun 2017 12:38:02 +0000 (14:38 +0200)
commitc73060687919fcadc5f1d767842c1762153854c1
treed8d77aa068cec2f4e0576a7f5fc419d909c7fedf
parent57ec32fb993d4b426ccca7ed2322eacbf9218596
MAJOR: applet: applet scheduler rework.

In order to authorize call of appctx_wakeup on running task:
- from within the task handler itself.
- in futur, from another thread.

The appctx is considered paused as default after running the handler.

The handler should explicitly call appctx_wakeup to be re-called.

When the appctx_free is called on a running handler. The real
free is postponed at the end of the handler process.
include/proto/applet.h
include/types/applet.h
src/applet.c
src/stream.c
src/stream_interface.c