|
|
@ -35,6 +35,7 @@ gnb_stack_nr::gnb_stack_nr(srslog::sink& log_sink) :
|
|
|
|
gtpu_task_queue = task_sched.make_task_queue();
|
|
|
|
gtpu_task_queue = task_sched.make_task_queue();
|
|
|
|
mac_task_queue = task_sched.make_task_queue();
|
|
|
|
mac_task_queue = task_sched.make_task_queue();
|
|
|
|
metrics_task_queue = task_sched.make_task_queue();
|
|
|
|
metrics_task_queue = task_sched.make_task_queue();
|
|
|
|
|
|
|
|
gnb_task_queue = task_sched.make_task_queue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
gnb_stack_nr::~gnb_stack_nr()
|
|
|
|
gnb_stack_nr::~gnb_stack_nr()
|
|
|
@ -97,15 +98,23 @@ int gnb_stack_nr::init(const gnb_stack_args_t& args_,
|
|
|
|
void gnb_stack_nr::stop()
|
|
|
|
void gnb_stack_nr::stop()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (running) {
|
|
|
|
if (running) {
|
|
|
|
rrc.stop();
|
|
|
|
gnb_task_queue.push([this]() { stop_impl(); });
|
|
|
|
pdcp.stop();
|
|
|
|
wait_thread_finish();
|
|
|
|
mac.stop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
srsran::get_background_workers().stop();
|
|
|
|
|
|
|
|
running = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void gnb_stack_nr::stop_impl()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
rrc.stop();
|
|
|
|
|
|
|
|
pdcp.stop();
|
|
|
|
|
|
|
|
mac.stop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task_sched.stop();
|
|
|
|
|
|
|
|
srsran::get_background_workers().stop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
running = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool gnb_stack_nr::switch_on()
|
|
|
|
bool gnb_stack_nr::switch_on()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Nothing to be done here
|
|
|
|
// Nothing to be done here
|
|
|
|