#include <types/applet.h>
#include <proto/connection.h>
-extern struct list applet_runq;
+extern struct list applet_active_queue;
void applet_run_active();
static inline void appctx_wakeup(struct appctx *appctx)
{
if (LIST_ISEMPTY(&appctx->runq))
- LIST_ADDQ(&applet_runq, &appctx->runq);
+ LIST_ADDQ(&applet_active_queue, &appctx->runq);
}
/* removes an applet from the list of active applets */
#include <proto/stream.h>
#include <proto/stream_interface.h>
-struct list applet_runq = LIST_HEAD_INIT(applet_runq);
+struct list applet_active_queue = LIST_HEAD_INIT(applet_active_queue);
void applet_run_active()
{
struct appctx *curr, *back;
struct stream_interface *si;
- list_for_each_entry_safe(curr, back, &applet_runq, runq) {
+ list_for_each_entry_safe(curr, back, &applet_active_queue, runq) {
si = curr->owner;
/* now we'll need a buffer */
break;
/* expire immediately if events are pending */
- if (fd_cache_num || run_queue || signal_queue_len || !LIST_ISEMPTY(&applet_runq))
+ if (fd_cache_num || run_queue || signal_queue_len || !LIST_ISEMPTY(&applet_active_queue))
next = now_ms;
/* The poller will ensure it returns around <next> */