mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 23:01:24 +02:00
MINOR: applet: Check applets_active_queue before processing applets queue
This is useless for now, but it will allow a huge improvement when the multithreading will be merged.
This commit is contained in:
parent
8fe4891b11
commit
6c57dc9145
@ -31,6 +31,9 @@ void applet_run_active()
|
|||||||
struct stream_interface *si;
|
struct stream_interface *si;
|
||||||
struct list applet_cur_queue = LIST_HEAD_INIT(applet_cur_queue);
|
struct list applet_cur_queue = LIST_HEAD_INIT(applet_cur_queue);
|
||||||
|
|
||||||
|
if (!applets_active_queue)
|
||||||
|
return;
|
||||||
|
|
||||||
curr = LIST_NEXT(&applet_active_queue, typeof(curr), runq);
|
curr = LIST_NEXT(&applet_active_queue, typeof(curr), runq);
|
||||||
while (&curr->runq != &applet_active_queue) {
|
while (&curr->runq != &applet_active_queue) {
|
||||||
next = LIST_NEXT(&curr->runq, typeof(next), runq);
|
next = LIST_NEXT(&curr->runq, typeof(next), runq);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user