0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

fixup! fixup! fixup! IO: Allow to take new loops if the thread is hot, but only one at time

This commit is contained in:
Maria Matejka 2024-06-27 14:35:47 +02:00
parent 4d502e934a
commit b03625698b

View File

@ -691,8 +691,8 @@ birdloop_take(struct birdloop_pickup_group *group)
UNLOCK_DOMAIN(attrs, group->domain);
uint dropped = 0;
node *n;
WALK_LIST2(loop, n, this_thread->loops, n)
node *n, *_nxt;
WALK_LIST2_DELSAFE(loop, n, _nxt, this_thread->loops, n)
{
birdloop_enter(loop);
if (ev_active(&loop->event) && !loop->stopped && !birdloop_hot_potato(loop))