mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
Fixes to root pool and meta loop to allow resource dumps
This commit is contained in:
parent
15d890e87b
commit
796f0af0cc
@ -336,6 +336,7 @@ resource_init(void)
|
|||||||
rcu_init();
|
rcu_init();
|
||||||
resource_sys_init();
|
resource_sys_init();
|
||||||
|
|
||||||
|
root_pool.r.class = &pool_class;
|
||||||
rp_init(&root_pool, the_bird_domain.the_bird, "Root");
|
rp_init(&root_pool, the_bird_domain.the_bird, "Root");
|
||||||
tmp_init(&root_pool, the_bird_domain.the_bird);
|
tmp_init(&root_pool, the_bird_domain.the_bird);
|
||||||
}
|
}
|
||||||
|
@ -892,6 +892,7 @@ bird_thread_main(void *arg)
|
|||||||
bird_thread_busy_update(thr, timeout);
|
bird_thread_busy_update(thr, timeout);
|
||||||
|
|
||||||
account_to(&this_thread->idle);
|
account_to(&this_thread->idle);
|
||||||
|
birdloop_leave(thr->meta);
|
||||||
poll_retry:;
|
poll_retry:;
|
||||||
int rv = poll(pfd.pfd.data, pfd.pfd.used, timeout);
|
int rv = poll(pfd.pfd.data, pfd.pfd.used, timeout);
|
||||||
if (rv < 0)
|
if (rv < 0)
|
||||||
@ -902,6 +903,7 @@ poll_retry:;
|
|||||||
}
|
}
|
||||||
|
|
||||||
account_to(&this_thread->overhead);
|
account_to(&this_thread->overhead);
|
||||||
|
birdloop_enter(thr->meta);
|
||||||
|
|
||||||
/* Drain wakeup fd */
|
/* Drain wakeup fd */
|
||||||
if (pfd.pfd.data[0].revents & POLLIN)
|
if (pfd.pfd.data[0].revents & POLLIN)
|
||||||
|
Loading…
Reference in New Issue
Block a user