mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 07:31:54 +00:00
Properly handling situations when birdloops are created before spawning threads
This commit is contained in:
parent
0fc0e4618f
commit
723569bc5d
@ -573,6 +573,7 @@ static void bird_thread_busy_set(struct bird_thread *thr, int val);
|
||||
struct birdloop_pickup_group pickup_groups[2] = {
|
||||
{
|
||||
/* all zeroes */
|
||||
.start_threads.hook = bird_thread_start_event,
|
||||
},
|
||||
{
|
||||
/* FIXME: make this dynamic, now it copies the loop_max_latency value from proto/bfd/config.Y */
|
||||
@ -1014,7 +1015,8 @@ static void
|
||||
bird_thread_start_event(void *_data)
|
||||
{
|
||||
struct birdloop_pickup_group *group = _data;
|
||||
bird_thread_start(group);
|
||||
if (group)
|
||||
bird_thread_start(group);
|
||||
}
|
||||
|
||||
static struct birdloop *thread_dropper;
|
||||
|
Loading…
Reference in New Issue
Block a user