enb,stack_lte: protect access to sync queue

the sync queue is only created during init so access needs to be protected
This commit is contained in:
Andre Puschmann 2021-09-24 11:34:14 +02:00
parent 59e1bca3f5
commit 593d28fa4d
1 changed files with 3 additions and 1 deletions

View File

@ -203,7 +203,9 @@ int enb_stack_lte::init(const stack_args_t& args_,
void enb_stack_lte::tti_clock()
{
sync_task_queue.push([this]() { tti_clock_impl(); });
if (started.load(std::memory_order_relaxed)) {
sync_task_queue.push([this]() { tti_clock_impl(); });
}
}
void enb_stack_lte::tti_clock_impl()