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:
parent
4d502e934a
commit
b03625698b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user