mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +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);
|
UNLOCK_DOMAIN(attrs, group->domain);
|
||||||
|
|
||||||
uint dropped = 0;
|
uint dropped = 0;
|
||||||
node *n;
|
node *n, *_nxt;
|
||||||
WALK_LIST2(loop, n, this_thread->loops, n)
|
WALK_LIST2_DELSAFE(loop, n, _nxt, this_thread->loops, n)
|
||||||
{
|
{
|
||||||
birdloop_enter(loop);
|
birdloop_enter(loop);
|
||||||
if (ev_active(&loop->event) && !loop->stopped && !birdloop_hot_potato(loop))
|
if (ev_active(&loop->event) && !loop->stopped && !birdloop_hot_potato(loop))
|
||||||
|
Loading…
Reference in New Issue
Block a user